Jump to content

Sticky Form to Mail Help


autopdr

Recommended Posts

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.

 

Link to comment
https://forums.phpfreaks.com/topic/113309-sticky-form-to-mail-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.