Forum Moderators: open

Message Too Old, No Replies

Information via URL

         

Mister_L

12:18 am on Aug 7, 2009 (gmt 0)

10+ Year Member



When trying to pass information via url in a form,i.e using action="folder/filename.php?var=value" (method="post") I get a notice that 'var' isn't defined(when I try to get it through $_GET['var']).Why is that?

Thanks.

swa66

12:56 am on Aug 7, 2009 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The part behind the question mark in your URL are GET parameters, youre' trying to do both POST and GET at the same time.

Use a hidden field to get the parameters in the POST.