After this script sends me an email with these people's info, I want it to automatically take them to a paypal pay site.
Here's what I have --
The error is -
Here's what I have --
Code:
<html>
<?php
if ($_POST['submit']){
$to = "myemail@email.com";
$subject = $_POST['name'];
$body = $_POST['name'].",".$_POST['address'].",".$_POST['city'].",".$_POST['zip'].",".$_POST['phone'].",".$_POST['email'].",".$_POST['preference'].",".$_POST['pass'];
if (mail($to, $subject, $body)){
echo("<p>Message sent!</p>");
echo"<body onload=\"document.form1.submit()\">";
echo"<form action=\"https:\/\/[URL unfurl="true"]www.paypal.com/cgi-bin/webscr\"[/URL] method=\"post\">;
echo"<input type=\"hidden\" name=\"cmd\" value=\"_xclick\">";
echo"<input type=\"hidden\" name=\"business\" value=\"myemail@email.com\">";
echo"<input type=\"hidden\" name=\"item_name\" value=\"Pass\">";
echo"<input type=\"hidden\" name=\"item_number\" value=\"123\">";
echo"<input type=\"hidden\" name=\"no_note\" value=\"1\">";
echo"<input type=\"hidden\" name=\"currency_code\" value=\"USD\">";
echo"<input type=\"hidden\" name=\"lc\" value=\"US\">";
echo"</form>";
}
else{
echo("<p>Message delivery failed...</p>");
}
}
?>
</html>
The error is -
Code:
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/w/waterski4life/.html/php-form-dance/tekconfirm.php on line 11