I'm scratching my head over this one. I have a PHP script that calls itself in its form action, and I specify method="POST" but it will do a GET instead and pass on the variables in the URL.
Note the form is called up with GET with a variable...
Eg.
Which will display a form that includes say for example...
Which results it in using method GET and doing this to the URL...
Why is it doing a GET instead of a POST?
Note the form is called up with GET with a variable...
Eg.
Code:
[url=http://www.site.com/script.php?action=displayform]www.site.com/script.php?action=displayform[/url]
Code:
<form action="script.php" method="POST"> <input type="hidden" name="var1" value="1"> <input type="hidden" name="var2" value="2"> <input type="submit" value="submit"> </form>
Code:
www.site.com/script.php?var1=1&var2=2
Comment