Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Email form to database

Status
Not open for further replies.

benrob82

Programmer
Jul 28, 2005
116
GB
Hi I might be having a really bad day but for some reason I cant work this out.

I have a survey in an email and I want to pass the results of the survey to a PHP page which will then add these results to the mysql database.

Does anyone have an idea of how to pass the results of the HTML survey to be processed on the PHP page.

Thanks
 
embed a form in the email and have the form's action set to the php page on which you parse the results. include the survey elements within the form tags.

make sure you set the action to a fully qualified url.

in the receiving php script, parse the incoming variables (post/get as you specify) and write them to the db as normal.
 
thanks for that you pointed me in the right direction, I eventurall found what was the problem. All works fine now.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top