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.