Jump to content

mail functions & form arrays


cowcutta

Recommended Posts

Well.. I've been working on this form, which is rather lengthy, and I want to be be emailed...$I've gotten most of it working, but I'm stumped on any of the "multiple" options and emailing those...This is my code:

<?  $application = $_POST["application"];    $applicationOtherComments = $_POST['applicationOtherComments'];  $RequireSoftware = $_POST['RequireSoftware'];  $range = $_POST["range"];  tagtype = $HTTP_POST_VARS["tagtype"];  $readerrequirements = $HTTP_POST_VARS["readerrequirements"];  $OtherReaderRequirements = $_POST['OtherReaderRequirements'];  $PurchaseTimeFrame = $_POST['PurchaseTimeFrame'];  $Quantities = $_POST['Quantities'];  $textfield = $_POST['textfield'];  $ContactName = $_POST['ContactName'];  $EMailAddress = $_POST['EMailAddress'];for ($i = 0; $i < sizeof($tagtype); $i++) {    echo $tagtype[$i];    echo "<br />";}for ($i = 0; $i < sizeof($readerrequirements); $i++) {    echo $readerrequirements[$i];    echo "<br />";} $when = date("D, F d H:i, Y");$info = $info . "$when\n\n";$info= $info  . "Application Type: $application\n";$info = $info . "Application Comments: $applicationOtherComments\n";$info = $info . "$RequireSoftware\n";$info = $info . "Range Requirements: $range\n";$info = $info . "Tag Types: $mailtag\n";$info = $info . "Reader Requirements:\n $readerrequirements\n";$info = $info . "Other Requirements:\n  $OtherReaderRequirements\n";$info = $info . "Purchase Time Frame: $PurchaseTimeFrame\n";$info = $info . "Approx. Quantities: $Quantities\n";$info = $info . "Additional Info:\n  $textfield\n";$info = $info . "Submitted By: $ContactName\n";$info = $info . "$EMailAddress\n";$surveyinfo = $surveyinfo ."$info";$dinfo = $dinfo ."$info";  mail("emailaddy","RFID Survey Submission: $ContactName",$info,"From: $EMailAddress");?>

So the 2 parts I'm stuggling with are:

$tagtype = $HTTP_POST_VARS["tagtype"];  $readerrequirements = $HTTP_POST_VARS["readerrequirements"];

and putting that info into the mail function:

$info = $info . "Tag Types: $mailtag\n";$info = $info . "Reader Requirements:\n $readerrequirements\n";

What am I missing to put the array info into the mail function?Jen

Link to comment
Share on other sites

So the 2 parts I'm stuggling with are:
$tagtype = $HTTP_POST_VARS["tagtype"];  $readerrequirements = $HTTP_POST_VARS["readerrequirements"];

and putting that info into the mail function:

$info = $info . "Tag Types: $mailtag\n";$info = $info . "Reader Requirements:\n $readerrequirements\n";

Just at a quick glance Jen your code doesn't match up, you change from $tagtype to $mailtag.$tagtype = $HTTP_POST_VARS["tagtype"];$readerrequirements = $HTTP_POST_VARS["readerrequirements"];$info = $info . "Tag Types: $mailtag\n";$info = $info . "Reader Requirements:\n $readerrequirements\n";If i'm mistaken then please say.
Link to comment
Share on other sites

Just at a quick glance Jen your code doesn't match up, you change from $tagtype to $mailtag.$tagtype = $HTTP_POST_VARS["tagtype"];$readerrequirements = $HTTP_POST_VARS["readerrequirements"];$info = $info . "Tag Types: $mailtag\n";$info = $info . "Reader Requirements:\n $readerrequirements\n";If i'm mistaken then please say.

Oops... your right... I forgot to switch that back after one of my many failed attempts...It does actually look like what you corrected....So... any ideas how I might make this work?Jen
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...