jackrabb137 Posted January 11, 2013 Share Posted January 11, 2013 does the email script that u can find at (http://www.w3schools.com/php/php_secure_mail.asp) still need to be server side or is this a client side script. The site is very simple mainly an info site for a cake store. Link to comment Share on other sites More sharing options...
jeffman Posted January 11, 2013 Share Posted January 11, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now