I want to send an email which contains a whole form to fill in. User can fill the form from email, and when user presses submit button in email, then a new browser window opens and data submits to the php file.
When I use Get method, data comes to the php file and $HTTP_GET_VARS gives me the data. But when I use Post method, data is not coming to the php file. I have checked through $HTTP_POST_VARS.
I test through Outlook .eml file.
My HTML code for email :
My php code :
while (list ($key, $val) = each ($HTTP_POST_VARS)) {
echo "$key => $val<br>";
}
Some other info :
HTTP_SERVER_VARS["REQUEST_METHOD"] => GET (When i submitted through POst method). It seems it is only opening the PHP file without submitting any data, that's why it displays method used is get method otherwise i had used post method.
What can be the problem? How can I make the email to submit the data through POST method?