Image

Imageduckspeaker wrote in Imagephp

How do you...email form

Thanks for all the responses--I read them all and will be using your advice!  :)

--------------------------------------------------------------------

When you create an email form, how many php pages do you create?

I’ll have a page with the actual form, and a second page that verifies/sanitizes/processes the information.

But quandary…. 

It’s probably my PHP naiveté that suggests everything be handled on the second of two scripts because that would be faster, and maybe even a bit more secure?  (that has got to be stupid right?)

The other part of me says it would be better to write a single PHP page that re-submits to itself with a switch statement. 

If you have a second…

What do you do---and why?

(I appreciate your thoughts!)