So, I have a very similar problem once again. I have a form which includes password entry boxes, which look something like this:
HTML Code:
<form name="Survey" method="post" action="formprocessor.php" id="Form1">
...
<div id="bv_Text22" style="margin:0;padding:0;position:absolute;left:9px;top:551px;width:998px;height:16px;text-align:left;z-index:36;">
<font style="font-size:13px" color="#000000" face="Arial"><b>6. What is your favourite colour?</b></font></div>
<input type="password" id="Editbox1" style="position:absolute;left:44px;top:574px;width:298px;height:20px;border:1px #C0C0C0 solid;font-family:'Courier New';font-size:16px;z-index:37" name="Question 6" value="">
...
</form>
I'm trying to e-mail the results using a php script, but the e-mail just gives me blank spaces instead of the values entered, and I can't work out why. The field names are unique.
PHP Code:
<?php
$data1 = $_POST["Question 6"];
$data2 = $_POST["Question 8.1"];
$data3 = $_POST["Question 8.2"];
$data4 = $_POST["Question 8.3"];
$data5 = $_POST["Question 8.4"];
$data6 = $_POST["Question 8.5"];
$to = "name@example.com";
$subject = "subject";
$message = "Data given was: " . $data1 . ", " . $data2 . ", " . $data3 . ", " . $data4 . ", " . $data5 . ", " . $data6;
$message = wordwrap($message, 70);
mail($to,$subject,$message);
header ("location: complete.php")
?>
Can anyone tell me what is going on? The result I get in the e-mail is:
Quote:
|
Data given was: , , , , ,
|