RE: [PHP] Reading URL is changed
| From: | Warren Vail | Date: | Sat, 20 Sep 2003 02:53:26 +0000 |
| Subject: | RE: [PHP] Reading URL is changed | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163263@lists.php.net to get a copy of this message | ||
What Dan says is true,,, IF there are other form fields on the form where
your user is making his choices. Since the hotlink fakes a "Get" type of
header, and does NOT cause the other fields be submitted as well, any last
minute changes to those formfields will be ignored by your form processing
routine.
On the other hand, if the click is the only value to be transfer the hotlink
technique should be adequate.
Warren Vail
warren@vailtech.net
-----Original Message-----
From: Dan Anderson [mailto:dan@mathjunkies.com]
Sent: Friday, September 19, 2003 5:58 PM
To: Dan J. Rychlik
Cc: PHP List
Subject: Re: [PHP] Reading URL is changed
First of all, you can use Javascript to submit a form when the link is
pressed.
Andu has a good idea too, but I figured I'd elaborate:
If you create a form like:
<FORM METHOD=GET ACTION='http://www.foo.com'>
<INPUT TYPE=HIDDEN NAME='foo' VALUE='bar'>
<INPUT TYPE=HIDDEN NAME='bar' VALUE='foo'>
<INPUT TYPE=SUBMIT VALUE='submit'>
</FORM>
The browser visits the URL:
http://www.foo.com?foo=bar&bar=foo
This is called GET method in a form. Do a google search.
Note that you will have to URL encode all variables and data. PHP
manual has a good section.
-Dan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php