I am having a problem with geting my form scripts to work on my computer. I have XP pro with Apache 1.3.27, PHP 4.2.3, Tomcat 4.1.12, and MySQL 3.23.52. I know that all of this works. I have tested it with other scripts and have had success using it. I have had the exact same form and php script work on my virtual server that my site runs off of. I just am having problem with it running on my workstation. I have included the HTML doc and the php doc.
This is the error message I get on my workstaion when I submit the form.
Notice: Undefined variable: email in c:\program files\apache group\apache\htdocs\info.php on line 4
Here is the scripts:
<?php
if ($name != ""){
}else{
die("Name is Required");
}
if ($email != ""){
} else {
die("Email address Required");
}
if ($data_name != "") {
copy("$data", "/home/wjlorgan/public_html/onestopfreakshop/upload/$data_name");
}
echo "Thank you $name for your interest in our product";
echo "<br><br>";
echo "We will respond within 24-48hrs";
echo "<br><br>";
echo "Name: $name";
echo "<br>";
echo "Email: $email";
echo "<br>";
echo "Diameter: $diameter";
echo "<br>";
echo "Wood Type: $woodtype";
echo "<br>";
echo "Flare Type: $flaretype";
echo "<br>";
echo "Customizing: $custom";
echo "<br>";
echo "You sent in $data_name";
mail("info@notreal.com",
"Web Information Request",
"$name has requested information on.
Diameter: $diameter
Wood Type: $woodtype
Flare Type: $flaretype
Customizing: $custom
Flie Sent: $data_name",
"from: $email");
?>
HTML Document:
<html>
<head>
<title>Information Form</title>
<body bgcolor="#000000" text="#FFFFFF">
<head>
<body>
<center>
<img src=images/stretch_1.jpg><br>
<table width="400"><tr><td align="center">
Please fill in the form and submit it.<br>
We will get back to you in 24-48 hrs
</td>
<table width="400"><tr><td align=left>
<form action="info.php" method="post" enctype="multipart/form-data">
Name
<input type="text" name="name" size="20" maxlength="30">
<br>
Email
<input type="text" name="email" size="20" maxlength="40">
<br>
Diameter
<select name="diameter">
<option value=2g>2g
<option value = 0g>0g
<option value = 00g>00g
</select>
<br>
Wood Type
<select name="woodtype">
<option value = chakte_kok>Chakte Kok
<option value = chechen>Che Chen
<option value = ebony>Ebony
<option value = grandillio>Grandillio
<option value = maple>Maple
</select>
<br>
Flare Type:
<select name = "flaretype">
<option value = straight>Straight no grooves
<option value = straight_o>Straight w/O-rings grooves
<option value = 1flare>Single flare no grooves
<option value = 1flare_o>Single Flare w/grooves
<option value = dflare>Double Flare
</select>
<br>
Customizing:
<textarea cols="30" rows="5" name="custom">
</textarea>
<br>
Add a File:
<input type="file" name="data">
<br>
</tr>
</td>
<tr>
<td>
<center>
<input type="submit" name="submit" value="submit">
 
<input type="reset" value="reset">
</center>
<p align="center"> </p>
<p align="center"><i><font size="2">As with all natural products our jewelry is
to be worn at your OWN risk. Not all types of material is appropriate for
certain sensitive skin individuals.</font></i><br>
<i><font size="1">All designs and pictures are property of<br>
WJL Organic Industries,Inc &<br>
One Stop Freak Shop © 2001-2002</font></i></p>
</table>
</body>
</html>
Thanks in advance for the help.