Posted by Oli Filth on 09/06/05 01:50
google.20.jbloggs@xoxy.net said the following on 05/09/2005 23:10:
> 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.
Even with this, you should still obtain $_GET['variable'].
>
> It also doesn't work if I use a hidden form field to pass a variable.
>
If you use a hidden field in a POST form, you will get a corresponding
entry in $_POST array.
--
Oli
[Back to original message]
|