Sticky Form to Mail Help

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
autopdr
Forum Newbie
Posts: 3
Joined: Sat Jun 28, 2008 4:51 am

Sticky Form to Mail Help

Post by autopdr »

Please can anyone recommend a good tutorial source for building a sticky web form for php5?

I specifically need the form to process itself, validate some input, show an error message adjacent to the relevant input field then send the input as a formatted HTML email.

I have searched high and low and found only old tutorials, sticky tutorials that don't cover validation errors and various half-helpful tips etc. My main problem as a relative newcomer to php is glueing all the right bits together.

My approach is:

If the form was submitted do the following:
Check for invalid/spam input
Set local variables
Read the Posted input
Validate the input that needs validating
Show errors where errors exist
Build the message
Define email headers
Send the email
Show Thanks message
Else
Print the HTML form

Is this sound? All or any help will be gratefully received.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Re: Sticky Form to Mail Help

Post by Benjamin »

I believe the results from this query will help you.

http://www.google.com/search?q=php+mail ... =firefox-a
Post Reply