Re: Reading URL is changed
| From: | Dan Anderson | Date: | Sat, 20 Sep 2003 00:57:44 +0000 |
| Subject: | Re: Reading URL is changed | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-163254@lists.php.net to get a copy of this message | ||
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