Hello,
Im trying to pass information from my contact form to a image verification form then to be processed. I tried putting the hidden fields in the image verifcation form and setting the contact form action to the image verfication form. When I submit the image verfication form however only an email with the structure of what I want is there and none of the needed answers are there though. So i will get a question from the form but not an answer. Here is my code for each, please let me know. The image verification, I took out all the hidden fields. Please HELP!! lol Thanks!
The following format will be in the email with the informational answers.
<?php
@extract($_POST);
$name = stripslashes($name);
$Date = stripslashes($Date);
$Title = stripslashes($Title);
$Company = stripslashes($Company);
$Address = stripslashes($Address);
$City = stripslashes($City);
$State = stripslashes($State);
$Zip = stripslashes($Zip);
$Telephone = stripslashes($Telephone);
$Fax = stripslashes($Fax);
$email = stripslashes($email);
$gift = stripslashes($gift);
$a1a = stripslashes($a1a);
$a1b = stripslashes($a1b);
$a1c = stripslashes($a1c);
$a1d = stripslashes($a1d);
$A2 = stripslashes($A2);
$A3 = stripslashes($A3);
$A4 = stripslashes($A4);
$A5 = stripslashes($A5);
$A6 = stripslashes($A6);
$A7 = stripslashes($A7);
$b1a = stripslashes($b1a);
$b1d = stripslashes($b1d);
$b1b = stripslashes($b1b);
$b1c = stripslashes($b1c);
$b1e = stripslashes($b1e);
$b1f = stripslashes($b1f);
$B2 = stripslashes($B2);
$B3 = stripslashes($B3);
$B4 = stripslashes($B4);
$B5 = stripslashes($B5);
$B6 = stripslashes($B6);
$B7 = stripslashes($B7);
$B8 = stripslashes($B8);
$B9 = stripslashes($B9);
$D3 = stripslashes($D3);
$D5a = stripslashes($D5a);
$D5b = stripslashes($D5b);
$C1 = stripslashes($C1);
$C1a = stripslashes($C1a);
$C1b = stripslashes($C1b);
$C1c = stripslashes($C1c);
$C1d = stripslashes($C1d);
$C2 = stripslashes($C2);
$C3 = stripslashes($C3);
$C7 = stripslashes($C7);
$C4 = stripslashes($C4);
$C5 = stripslashes($C5);
$C6a = stripslashes($C6a);
// Subjects of csfluxer survey
$subject = "CSFluxer Customer Survey";
// Body of email
$body = "<html><body>";
$body .= "<p><strong>Name</strong>: $name<br />
<strong>Date</strong>: $Date<br />
<strong>Title</strong>: $Title<br />
<strong>Company</strong>: $Company<br />
<strong>Address</strong>: $Address<br />
<strong>City</strong>: $City<br />
<strong>State</strong>: $State<br />
<strong>Zip</strong>: $Zip<br />
<strong>Telephone</strong>: $Telephone<br />
<strong>Fax</strong>: $Fax<br />
<strong>Email</strong>: $email<br />
<strong>Gift</strong>: $gift</p>
<p> </p>
<p><b>A. YOUR OPINION OF THE SONO-TEK CORPORATION</b></p>
<table >
<tr>
<td ><strong>1. Please rate the following:</strong></td>
<td > </td>
</tr>
<tr>
<td ></td>
<td > </td>
</tr>
<tr>
<td><strong>Responsiveness of<br />
Sono-Tek's Direct <br />
Sales contact:</strong></td>
<td > $a1a </td>
</tr>
<tr>
<td><strong>Responsiveness of <br />
your local manufacturer's representative:</strong></td>
<td > $a1b</td>
</tr>
<tr>
<td><strong>Responsiveness of<br />
Service/Support personnel:</strong></td>
<td > $a1c</td>
</tr>
<tr>
<td><strong>Overall satisfaction with <br />
Sono-Tek's handling of your account:</strong></td>
<td > $a1d</td>
</tr>
</table>
<p><strong>2. What if any problems have you encountered in your dealings with
Sono-Tek?</strong><br />
$A2</p>
<p><strong>3. Is there anything we could do to improve our relationship with you?</strong><br />
$A3</p>
<p><strong>4. What do you like best about Sono-Tek?</strong><br />
$A4 </p>
<p><strong>5. What do you like least about Sono-Tek?</strong><br />
$A5 </p>
<p><strong>6. How does Sono-Tek compare to your other suppliers of capital equipment?</strong><br />
$A7<br />
<br />
<strong>7. Do you have any other comments regarding Sono-Tek?</strong><br />
$A6<br />
</p>
<p><b>B. YOUR OPINION OF YOUR SONO-TEK SYSTEM</b></p>
<table>
<tr>
<td><strong>1. Please rate the following:</strong></td>
<td> </td>
</tr>
<tr>
<td></td>
<td> </td>
</tr>
<tr>
<td><strong>Ease <br />
of operation:</strong></td>
<td>$b1a </td>
</tr>
<tr>
<td><strong>Ease <br />
of maintenance:</strong></td>
<td>$b1d</td>
</tr>
<tr>
<td><strong>Reliability</strong>:</td>
<td>$b1b</td>
</tr>
<tr>
<td><strong>Ease of <br />
changing process<br />
Parameters:</strong></td>
<td>$b1c </td>
</tr>
<tr>
<td><strong>Documentation</strong>:</td>
<td>$b1e </td>
</tr>
<tr>
<td><strong>Overall performance:</strong></td>
<td>$b1f</td>
</tr>
</table>
<p><strong>2. How much maintenance/cleaning does your Sono-Tek system require
each week?</strong><br />
$B2 </p>
<p><strong>3. What are the most significant problems you have encountered using
your Sono-Tek System?</strong><br />
$B3</p>
<p><strong>4. What do you like best about your Sono-Tek System?</strong><br />
$B4 </p>
<p><strong>5. What do you like least about your Sono-Tek System?</strong><br />
$B5 </p>
<p><strong>6. Rate the Sono-Tek System in terms of meeting your expectations and
objectives:</strong><br />
$B6</p>
<p><strong>7. Would you recommend the Sono-Tek System to others?</strong><br />
$B7</p>
<p><strong>8. Do you have other comments regarding the Sono-Tek System?</strong><br />
$B8 </p>
<p><strong>9. Do you have a comment that could be added to our Testimonial List?
</strong><br />
(Your comments will NOT be placed in periodicals or magazines)<br />
$B9 </p>
<p><strong>10. If the Sono-Tek system replaced another method, please describe.</strong><br />
$D3 </p>
<p><strong>11. Advantages and disadvantages of the Sono-Tek system compared to</strong><br />
<strong>your prior method. </strong><br />
<b>Advantages</b><br />
$D5a </p>
<p><b>Disadvantages</b><br />
$D5b <b><br />
C. YOUR VIEW OF SONO-TEK'S SERVICE/SUPPORT:</b></p>
<p><strong>1. Did a Sono-Tek Representative install your system?</strong><br />
$C1</p>
<p><strong>If yes, please rate our performance in the following areas:</strong></p>
<table>
<tr>
<td></td>
<td> </td>
</tr>
<tr>
<td></td>
<td> </td>
</tr>
<tr>
<td><strong>Knowledge of the<br />
Sono-Tek system:</strong></td>
<td>$c1a </td>
</tr>
<tr>
<td><strong>Training your personnel<br />
on operation:</strong></td>
<td>$c1b </td>
</tr>
<tr>
<td><strong>Training your personnel<br />
on troubleshooting:</strong></td>
<td>$c1c </td>
</tr>
<tr>
<td><strong>Training your personnel<br />
on maintenance:</strong></td>
<td>$c1d </td>
</tr>
</table>
<p><strong>2. Were you able to set up and become operational within your allotted
time? </strong><br />
$C2<br />
<strong>If no, please comment:</strong><br />
$C3</p>
<p><strong>3. Do you have any other comments regarding the installation? </strong><br />
$C7 </p>
<p><strong>4. We would like to know the extent of service/support you have utilized
since the installation of your system. Have you had occasion to request help
by:</strong><br />
</p>
<table>
<tr>
<td><strong>Phone:</strong></td>
<td>$C4 </td>
</tr>
<tr>
<td><strong>Email</strong>:</td>
<td>$C5</td>
</tr>
</table>
<p><strong>5. Please rate the performance of our Service and Support: </strong><br />
$c6a </p>";
$body .="</body></html>";
//Headers
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: $name <$email>";
// who to mail to
mail('asousa@sono-tek.com',$subject,$body,$headers);
header("location:http://www.sono-tek.com");
?>
This is the image verification *note I removed all the hidden fields to try something else but failed to find a solution.
<?PHP
session_start();
if (isset($_POST['txtNumber'])) {
$number = $_POST['txtNumber'];
if (md5($number) == $_SESSION['image_random_value']) {
header("location:csfluxerprocess2.php");
exit;
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<style>
p {
text-align: center;
font-size: 14px;
font-style: oblique;
color: #FF0000;
}
</style>
</head>
<body>
<p> </p>
<p> </p>
<p>Please enter the number shown below into the text box to proceed.<br /> You will not advance and this form will not be completely submitted until the correct number is entered.</p>
<form method="post" name="CustomerSurveyForm" id="imagever" action="">
<p><img src="randomimage.php" /><br /><input type="text" name="txtNumber" size="5" /><br />
<input type="submit" name="submit" />
</p>
</form>
</body>
</html>
And finally this is the beginning of the form
<form action="csimage.php" method="post" name="CustomerSurveyForm" onSubmit="MM_validateForm('Name','','R','Date','','R','Company','','R','Email','','RisEmail');return document.MM_returnValue">