Re: Forms
| From: | David Robley | Date: | Thu, 13 Jul 2000 03:03:43 +0000 |
| Subject: | Re: Forms | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-6371@lists.php.net to get a copy of this message | ||
On 13 Jul, Tom Peck wrote:
> Hi
>
> I have a form procesesd with a submit button, now is there a PHP variable
> which equals the entire form line? For example, after the submit button has
> been pressed, the URL is something like this:
>
> webpage.php3?submit=yes&variable1=this&variable2=that
>
> I want to then be able to put "submit=yes&variable1=this&variable2=that"
> into a string variable. Is there a PHP variable which equals this?
>
> Thanks
>
> Tom Peck
Not one, but a number of variables; based on that example you will find
that you can access variables named $submit value 'yes', $variable1
value 'this' and $variable2 value 'that'
If you are configured appropriately, they can also be found as elements
of the array HTTP_GET_VARS.
You may find it better to submit via the POST method, rather than GET;
if so the array becomes HTTP_POST_VARS
Cheers
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA