thsis the error I am geting
Notice: Undefined variable: HTTP_POST_FILES in C:\wamp\www\pacientes\process.php on line 16
Notice: Undefined variable: HTTP_POST_FILES in C:\wamp\www\pacientes\process.php on line 17
Notice: Undefined variable: Comments in C:\wamp\www\pacientes\process.php on line 19
Notice: Undefined variable: Name in C:\wamp\www\pacientes\process.php on line 19
Notice: Undefined variable: HTTP_POST_FILES in C:\wamp\www\pacientes\process.php on line 23
Notice: Undefined variable: HTTP_POST_FILES in C:\wamp\www\pacientes\process.php on line 28
The following errors occured while processing your form input.
* You did not enter one or more of the required fields. Please go back and try again.
this is my process file
<?php
include("global.inc.php"
;
$errors=0;
$error="The following errors occured while processing your form input.<ul>";
pt_register('POST','Name');
pt_register('POST','LastName');
pt_register('POST','Address');
pt_register('POST','City');
pt_register('POST','State');
pt_register('POST','ZipCode');
pt_register('POST','Country');
pt_register('POST','Phone');
pt_register('POST','MobilePhone');
/*pt_register('POST','Email');*/
pt_register('POST','BirthDate');
$PhotoBefore=$HTTP_POST_FILES['PhotoBefore'];
$PhotoAfter=$HTTP_POST_FILES['PhotoAfter'];
pt_register('POST','Comments');
$Comments=preg_replace("/(\015\012)|(\015)|(\012)/"," <br />", $Comments);if($Name=="" || $LastName=="" || $Address=="" || $City=="" || $State=="" || $ZipCode=="" || $Country=="" || $Phone=="" || $MobilePhone=="" || $BirthDate=="" ){
$errors=1;
$error.="<li>You did not enter one or more of the required fields. Please go back and try again.";
}
if($HTTP_POST_FILES['PhotoBefore']['tmp_name']==""
{ }
else if(!is_uploaded_file($HTTP_POST_FILES['PhotoBefore']['tmp_name'])){
$error.="<li>The file, ".$HTTP_POST_FILES['PhotoBefore']['name'].", was not uploaded!";
$errors=1;
}
if($HTTP_POST_FILES['PhotoAfter']['tmp_name']==""
{ }
else if(!is_uploaded_file($HTTP_POST_FILES['PhotoAfter']['tmp_name'])){
$error.="<li>The file, ".$HTTP_POST_FILES['PhotoAfter']['name'].", was not uploaded!";
$errors=1;
}
if($errors==1) echo $error;
else{
$image_part = date("h_i_s"
."_".$HTTP_POST_FILES['PhotoBefore']['name'];
$image_list[11] = $image_part;
copy($HTTP_POST_FILES['PhotoBefore']['tmp_name'], "files/".$image_part);
$image_part = date("h_i_s"
."_".$HTTP_POST_FILES['PhotoAfter']['name'];
$image_list[12] = $image_part;
copy($HTTP_POST_FILES['PhotoAfter']['tmp_name'], "files/".$image_part);
$where_form_is="http".($HTTP_SERVER_VARS["HTTPS"]=="on"?"s":""
."://".$SERVER_NAME.strrev(strstr(strrev($PHP_SELF),"/"
);
$message="Name: ".$Name."
Last Name: ".$LastName."
Address: ".$Address."
City: ".$City."
State: ".$State."
Zip Code: ".$ZipCode."
Country: ".$Country."
Phone: ".$Phone."
Mobile Phone: ".$MobilePhone."
Birth Date: ".$BirthDate."
Photo Before: ".$where_form_is."files/".$image_list[11]."
Photo After: ".$where_form_is."files/".$image_list[12]."
Comments: ".$Comments."
";
$link = mysql_connect("localhost", "root"
;
mysql_select_db("jencinas_pacientes",$link);
$query="insert into pacientes (Name,Last_Name,Address,City,State,Zip_Code,Country,Phone,Mobile_Phone,Birth_Date,Photo_Before,Photo_After,Comments) values ('".$Name."','".$LastName."','".$Address."','".$City."','".$State."','".$ZipCode."','".$Country."','".$Phone."','".$MobilePhone."','".$BirthDate."','".$where_form_is."files/".$image_list[11]."','".$where_form_is."files/".$image_list[12]."','".$Comments."')";
mysql_query($query);
$make=fopen("admin/data.dat","a"
;
$to_put="";
$to_put .= $Name."|".$LastName."|".$Address."|".$City."|".$State."|".$ZipCode."|".$Country."|".$Phone."|".$MobilePhone."|".$BirthDate."|".$where_form_is."files/".$image_list[11]."|".$where_form_is."files/".$image_list[12]."|".$Comments."
";
fwrite($make,$to_put);
?>
<!-- This is the content of the Thank you page, be careful while changing it -->
<h2>Thank you!</h2>
<table width=50%>
<tr><td>Name: </td><td> <?php echo $Name; ?> </td></tr>
<tr><td>Last Name: </td><td> <?php echo $LastName; ?> </td></tr>
<tr><td>Address: </td><td> <?php echo $Address; ?> </td></tr>
<tr><td>City: </td><td> <?php echo $City; ?> </td></tr>
<tr><td>State: </td><td> <?php echo $State; ?> </td></tr>
<tr><td>Zip Code: </td><td> <?php echo $ZipCode; ?> </td></tr>
<tr><td>Country: </td><td> <?php echo $Country; ?> </td></tr>
<tr><td>Phone: </td><td> <?php echo $Phone; ?> </td></tr>
<tr><td>Mobile Phone: </td><td> <?php echo $MobilePhone; ?> </td></tr>
<tr><td>Birth Date: </td><td> <?php echo $BirthDate; ?> </td></tr>
<tr><td>Photo Before: </td><td> <?php echo $PhotoBefore; ?> </td></tr>
<tr><td>Photo After: </td><td> <?php echo $PhotoAfter; ?> </td></tr>
<tr><td>Comments: </td><td> <?php echo $Comments; ?> </td></tr>
</table>
<!-- Do not change anything below this line -->
<br><br><form>
<a href="resultados.php"><INPUT type="button" value="Ver Reporte"></a>
<a href="index.html"><INPUT type="button" value="Regresar ala Forma de Captura" ></a></form>
<?php
}
?>