I am trying to make a customer support mailer. I downloaded the basic script from somewhere, I can't remember the site but it just had two form inputs for 'email 'and 'message'.
What I want is not all too different, just a couple more input values
$name = $_REQUEST['name'] ;
$email = $_REQUEST['email'] ;
$paypalemail = $_REQUEST['paypalemail'] ;
$paypalrecieptid = $_REQUEST['paypalrecieptid'] ;
$message = $_REQUEST['message'] ;
mail( "support@mysite.com", "Support Request",
$paypalemail, $paypalrecieptid, $message, "From: $email" );
header( "Location: supportsent.php" );
The original script worked fine, but once I added in the extra form variables and did my best to edit the last few lines so that I could recieve the data, it stopped working. It is a simple form, just 4 text inputs and a <textarea>.
What am I doing wrong? I feel that it has to be the last couple lines.
Best Regards
~Ross Vaughn