|
Trying to use godaddy webformmailer.php all is working okay with the exception of trying to have the submitted information posted to the redirect page. Should I add to the webformailer or enter a code on my redirected page?? Here is the code I tried using on my redirect page
<?php
$thename=$_POST['thename'];
$thecompany=$_POST['thecompany'];
$theaddress=$_POST['theaddress'];
$theareacode=$_POST['theareacode'];
$thephone=$_POST['thephone'];
$theemail=$_POST['theemail'];
$thecomments=$_POST['thecomments'];
$thetime=date("D. M. d, Y - h:i:s A");
$from=$theemail;
$to="************"; omitted just for post
$subject="Computer Request Form";
$body="Somebody has requested information\n Date and time from the server ".$thetime;
?>
This is what we got from the form:<br><br>
<?php
echo "
name: $thename<br>
company: $thecompany<br>
address: $theaddress<br>
phone: $thephone<br>
email: $theemail<br>
Comments: $thecomments<br><br>
and this is the time from the server: $thetime<br><br>
this is the body of email to be sent: $body<br><br>
this is the from and headers: $from<br><br>
";
if (mail($to,$subject,$body,$from)) echo "<br>Mail sent"; else echo "<br>Mail failed to send";
?>
|