| | |
|
|
|
GET & POST a little help please |
| message from lparnau on 16 Jul 2004 |
When passing a variable using the http address line or header you add "?nameof
variable=value".
My question is what is the default name given to a passed variable when you do
not pass the name "?username"
How do I capture the variable or variables? I am using PHP.
Leonard
|
| meangreen replied to lparnau on 16 Jul 2004 |
If I am correct this is a HTML forms question rather than a dreamweaver one.
http://www.yoursite.com/forms/form1.php?var1=one&var3=three
Then the value of var2 is undefined (meaning unless your script assigns a
default value to the variable before retrieving the values from the URL, then
there isn't a default value.)
Hope this helps, and try searching Google for help on HTML forms and PHP
scripting.
|
| Gary White replied to lparnau on 16 Jul 2004 |
There is no default name. The example you give, "?username" would pass a
value that you would access with $_GET["username"] and its value would be an
empty string.
Gary
|
|
Archived message: GET & POST a little help please (Macromedia Dreamweaver)