Jump to content

email


jackrabb137

Recommended Posts

It's mostly a server-side script. It sends an email message if it receives form data. If it does not receive form data, it outputs an HTML form. HTML is not a scripting language, and there is no way to send email directly from a browser. Data must first be posted to the server, and a server-side script like this one sends the mail. Note that the example on that page exists to show you how to sanitize data before you mail it (which of course you should do). Most of the email tutorial is on the previous page. FWIW, I think it's bad practice to use the $_REQUEST superglobal as the example does. I recommend using the $_POST superglobal instead.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...