PHP mail question

14 posts by 2 authors in: Forums > CMS Builder
Last Post: July 13, 2010   (RSS)

Re: [Jason] PHP mail question

By gkornbluth - July 13, 2010

Thanks Jason,

So I think that you're saying that it's OK to remove the Email entry field on the form but that they might somehow change the submitted Email address anyway?

Best,

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

By Jason - July 13, 2010

Hi Jerry,

I would keep the email entry form on the confirmation page. Placing the variables at the end of the url in your email is just simulating a form post. However, there is nothing to stop someone from changing the email address when they paste it into the browser (either on purpose, or by accident). The code that I posted does a check to make sure the email in the url string does exist in our table before it tries to update it. If it isn't there, it will display an error message and display the form. This gives the user a chance to type the proper email in, in the case of a mistake. If they fill out the form and submit it, the script will run the same as if they had gotten it from the link.

Hope this makes it a little clearer.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] PHP mail question

By gkornbluth - July 13, 2010

So it's kind of a a double check.

Got it

Thanks
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php