Hi, I am passing values of two fields (Name and email) to the next page via post method. I am successfully passing both values via get method but via post method only Name value is passed. here are the codes i am using Please can some one explain me whats the error Thanks Adnan
Check if you've correctly set the form passing method ! If you've set it to POST - no way you could access it with $_GET variable .. So I would say - your email variable containing form is set to GET.
make sure you have this on form <form action="yourfile" method="POST"> and input name = email then just to a print_r($_POST) to see vars u got
Yeah I agree with chmdznr, you should use $_REQUEST['email'] because it works with both get and post method. Also the email field should be <input type="text" name="email" id="email">