Posted by Stan McCann on 10/13/40 11:26
google.20.jbloggs@xoxy.net wrote in
news:1125958230.218758.142020@g43g2000cwa.googlegroups.com:
> Weird problem - why is it that this works:
>
> <a href="page.php?variable=1">click</a>
>
> but this doesn't:
>
> <form method="post" action="page.php?variable=1">
> <input type="submit" name="submit" value="submit">
> </form>
>
> With the "form" method, I still get the "page.php?variable=1" URL,
> but the page opens as if no variables are passed.
>
> It also doesn't work if I use a hidden form field to pass a
> variable.
>
> Joe
>
>
You are asking to use the post method and expecting a get variable.
Try changing the method to get and then see if $_GET[variable]
contains 1.
--
Stan McCann "Uncle Pirate" http://stanmccann.us/pirate.html
Webmaster/Computer Center Manager, NMSU at Alamogordo
http://alamo.nmsu.edu/ There are 10 kinds of people.
Those that understand binary and those that don't.
[Back to original message]
|