mrtom100
06-26-2007, 06:47 PM
hello i am having trouble e-mailing a php form that contain quite a bit of information. I can not get it to send all the fields of the form only one anyone have any ideas ?
This is the code i use to mail the form to my account:
<?
// send the form by e-mail
$to = "mail@something.com";
$from = $_REQUEST['email'];
$subject = $_REQUEST['Register Form'];
$name = $_REQUEST['Name'] ;
$subject = " Re";
$headers = "";
$headers="MIME-Version: 1.0\nContent-type: text/html; charset=iso-8859-1\n";
$headers.="From: $from\nReply-To: $from\n";
// -f added to the from variable to allow it to work due to restrictions on the server
mail ($to,$subject,$message,$headers,"-f$from");
// after processed go here thank.php
header ("Location: thanks.html");
?>
This is a link to the form which i need the information to be sent from
http://mi-linux.wlv.ac.uk/~0602840/main.php
any help would be great
This is the code i use to mail the form to my account:
<?
// send the form by e-mail
$to = "mail@something.com";
$from = $_REQUEST['email'];
$subject = $_REQUEST['Register Form'];
$name = $_REQUEST['Name'] ;
$subject = " Re";
$headers = "";
$headers="MIME-Version: 1.0\nContent-type: text/html; charset=iso-8859-1\n";
$headers.="From: $from\nReply-To: $from\n";
// -f added to the from variable to allow it to work due to restrictions on the server
mail ($to,$subject,$message,$headers,"-f$from");
// after processed go here thank.php
header ("Location: thanks.html");
?>
This is a link to the form which i need the information to be sent from
http://mi-linux.wlv.ac.uk/~0602840/main.php
any help would be great