PHP Questions Home
Categories
Arrays
Files
Forms
Creating PDFs
PHP Errors
Functions
Images
MySQL
Numbers
Others
Strings
Website

PHP Forums
Forums Index
MySQL Forum
PHP Forum
Flash/Actionscript
Javascript
Web design

More PHP
PHP Functions
Top Questions
Ask a Question
PHP Interview Questions
PHP Jobs
Ecommerce
IT Questions
Business Websites

Sponsors

sponsor ad
My Salary
PHP Developer Salary
Advertise Here

How do I email the contents of a form to me?


The mail function is used to send email in PHP. People are amazed how easy it is to send a simple email with PHP and think there must be a catch or a complicated method, but in fact it's really simple.

The mail function can take several parameters, however for a simple email all you need are the first three - who it is to, the title of the email (subject) and the contents of the message (body).

Thus if your web server is configured to allow use of the mail function on PHP, this will send an email:

<?php
mail
("me@myaddress.com","Hello me","That was easy wasn't it?");
?>



ASK A QUESTION

More forms PHP Questions

PHP program to register students' record

i just wanted to put a textbox beside the query of the evaluation form. how can i do that? ========================== here is my php form index.php PERFORMANCE APPRAISAL INSTRUMENT var Event = { add: function(obj,type,fn) {

Can I use a variable from a .php file to give a value to an HTML FormMail form field thus: ? Thank you

is it possible to submit a form without a submit button

I am taking over a position from another programmer, and want to change some php code, but part of it has me baffled. The code creates a form and after it is filled, the client wants it to go to a separate thank you page right now, it re-uses the for



Custom Search