|
|
#1 |
|
Crazy Dude
|
I've a Question about PHP:
How do I make a input-field (like the Log-In field), and How can I save the input in a variable, not in a SQL-file? Thanks. |
|
|
|
|
|
#2 |
|
Banned
Join Date: Mar 2007
Location: Domefield Centre Mission: Defeat the Zirrons in Chyare Strait.
Posts: 1,045
|
I don't know the second one, but you make text fields directly with HTML.
|
|
|
|
|
|
#3 | ||
|
Crazy Dude
|
Quote:
Quote:
|
||
|
|
|
|
|
#4 |
|
Marshmallow Head
The Boss
Join Date: Jun 2003
Location: Anza, CA
Posts: 6,183
|
Google "HTML Forms", there are lots of really basic tutorials on that. Then when the form is submitted, all form fields are in the form of $_GET["name"] or $_POST["name"] depending on whether your form was done via GET or POST (which you'll learn about in the tutorials!).
|
|
|
|
|
|
#5 |
|
Crazy Dude
|
Thanks.
|
|
|
|
|
|
#6 | |
|
Is a ninja
|
Quote:
|
|
|
|
|
|
|
#7 |
|
Marshmallow Head
The Boss
Join Date: Jun 2003
Location: Anza, CA
Posts: 6,183
|
Forms don't put things into a session or cookies - those are done separately.
|
|
|
|
|
|
#8 |
|
Banned
Join Date: Mar 2007
Location: Domefield Centre Mission: Defeat the Zirrons in Chyare Strait.
Posts: 1,045
|
Cookies are made automatically. Making your own cookies is usually dicey.
|
|
|
|
|
|
#9 |
|
Is a ninja
|
|
|
|
|
|
|
#10 |
|
Banned
Join Date: Mar 2007
Location: Domefield Centre Mission: Defeat the Zirrons in Chyare Strait.
Posts: 1,045
|
Um... No. A lot of things automatically make a cookie. (In Firefox at least)
|
|
|
|
|
|
#11 |
|
Certified Bunnay Agent
Join Date: Jul 2007
Location: Not Kansas
Posts: 1,652
|
Mmmmmmmmm.....cookies....
__________________
When in Rome, drink Romenade. Toronto Island is the entertainment.- Translation Party This won’t appear 3D to you unless you cut very precise grooves in your computer monitor. We don’t recommend doing that. - GamesRadar Humility is the mark of a true warrior/cool person. |
|
|
|
|
|
#12 |
|
Evil, random-voting vegetable
Join Date: Mar 2005
Location: Down at the shore where there's no-one vacationing.
Posts: 4,860
|
Like? As far as I know, nothing makes a cookie automaticly.
|
|
|
|
|
|
#13 |
|
Banned
Join Date: Mar 2007
Location: Domefield Centre Mission: Defeat the Zirrons in Chyare Strait.
Posts: 1,045
|
Any kind of thing where you have to load scripts. It creates a cookie to run the scripts automatically next time to be quicker. It can also store stylesheets as cookies.
|
|
|
|
|
|
#14 |
|
Evil, random-voting vegetable
Join Date: Mar 2005
Location: Down at the shore where there's no-one vacationing.
Posts: 4,860
|
Are you confusing cookies, which scripts use to store data, with the cache, where the browser stores data so that it can be retrieved faster next time?
|
|
|
|
|
|
#15 |
|
Marshmallow Head
The Boss
Join Date: Jun 2003
Location: Anza, CA
Posts: 6,183
|
You're confusing cookies with cached pages. Any page you visit is saved on your computer so it can load from there next time (with varying degrees of getting it off the web in the future, depending on your settings). Cookies are little bits of data that hold your info, like your name and password on a forum. A webpage can read the cookies to use their information as needed. Cookies have to be explicitly set by a webpage to exist.
|
|
|
|
|
|
#16 |
|
Banned
Join Date: Mar 2007
Location: Domefield Centre Mission: Defeat the Zirrons in Chyare Strait.
Posts: 1,045
|
Really? The HTML and Javascript tutorial site I use calls those cookies.
|
|
|
|
|
|
#17 |
|
Veteran Programmer
|
Huh. That's weird. What tutorial are you using? I learned from www.webmonkey.com!
|
|
|
|
|
|
#19 | ||
|
Crazy Dude
|
Thanks, for all those answers.
Quote:
Quote:
Last edited by Knittel; 12-04-2007 at 07:42 AM. |
||
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
