take the values from your form exactly
<input type="text" name="textfield5" />
name this file send.php
open the php by
<?php
and at the end do not forget to close ?>
outside of <?php ?>you can use normal html page
first (it is not nessesary all times but it should make error)
$sender_mail = $_POST["textfield5"];
you have to recopy all your inputs
second the message
it is good to let it be minimal short like in this example or you can have some troubles
and keep just replacing the values in message body by $sender_mail etc it only must start by word no spaces
$message = "mesage from $sender_mail xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"; // message body
$headers = "From: \"Sender Name\"<sender@domain.org>"; // message head
$head = "message topic for recevier of this emailx"; // short head
mail($mail, $head, $message, $headers); // sending by smtp server
and i hope it is good
Yea. Could you jut post the whole code that confused me lol my email is thndrandlitning5@gmail.com. SO if you could make out the whole code already with my email in it it would be aweosme. Thanx
HTML is just markup code, it cannot do anything other than format data... and these days CSS does all that anyway...
All HTML can do with forms is, as Sobe says, tell the users email client to open up and get the user to click the send button. Not very nice for the user.
Something on the server to do the mailing automatically is nice and simple. PHP can do it very easily. I seem to recall an example on page 1... for the $message part...
Code
$message = print_r($_POST,true);
Will work quite nicely for taking all data from a form and outputting it in a nice human readable form. Say you have a form with 3 fields on called, name, email and age you'll end up with something like the following for the body of your email.
Code
Array(
name =>'bob',
email =>'email@address.com',
age =>'47'
);
Beauty of this is that you can add/remove fields to your form and the mailing part doesn't need changing at all.
Pretty true, and NEVER EVER you should not put any cofidential data, like passwords userids etc. in clear form to html code. Instead if you apache (in windows or linux) you can use .htaccess (it can be set in windows side so that server does not show those files for clients)
Anyhow, I would recomend that you study some HTML + CSS + PHP since with those tools you can do pretty much what ever you want.