I have PHP4 running on IIS 4/NT 4.0, for the most part everythign seems ok, until i 
try to use an include statment.  This is a form that is suppose to call up missing.inc 
when a required field is blank.  Right now it doesn't display the include file it just 
refreshes the index.php file.

snipit of code from index.php

<?php

  if($form == "yes") {
 
 if($FirstName == "") {include("inc\missing.inc"); exit; }
 if($MiddleName == "") { $missing = "Middle Name"; include("inc\missing.inc"); exit; }
 if($LastName == "") { $missing = "Last Name"; include("inc\missing.inc"); exit; }
 if($CurrentStreetAddress == "") { $missing = "Current Street Address"; 
include("inc\missing.inc"); exit; }
 if($CurrentCity == "") { $missing = "Current City"; include("inc\missing.inc"); exit; 
}
 if($CurrentState == "") { $missing = "Current State"; include("inc\missing.inc"); 
exit; }
 if($CurrentZip == "") { $missing = "Current Zip"; include("inc\missing.inc"); exit; }
 if($CurrentPhoneNumber == "") { $missing = "Current Phone Number"; 
include("inc\missing.inc"); exit; }
 if($CurrentEMailAddress == "") { $missing = "Current E-mail Address"; 
include("inc\missing.inc"); exit; }
 if($CurrentLandlordName == "") { $missing = "Current Landlord Name"; 
include("inc\missing.inc"); exit; }
 if($CurrentLandlordPhone == "") { $missing = "Current Landlord Phone"; 
include("inc\missing.inc"); exit; }
 if($PreviousStreetAddress == "") { $missing = "Previous Street Address"; 
include("inc\missing.inc"); exit; }
 if($PreviousCity == "") { $missing = "Previous City"; include("inc\missing.inc"); 
exit; }
 if($PreviousState == "") { $missing = "Previous State"; include("inc\missing.inc"); 
exit; }
 if($PreviousZip == "") { $missing = "Previous Zip"; include("inc\missing.inc"); exit; 
}
 if($PreviousLandlordName == "") { $missing = "Previous Landlord Name"; 
include("inc\missing.inc"); exit; }
 if($PreviousLandlordPhone == "") { $missing = "Previous Landlord Phone"; 
include("inc\missing.inc"); exit; }
 if($SocialSecurityNumber == "") { $missing = "Social Security Number"; 
include("inc\missing.inc"); exit; }
 if($MonthofBirth == "") { $missing = "Month of Birth"; include("inc\missing.inc"); 
exit; }
 if($DayofBirth == "") { $missing = "Day of Birth"; include("inc\missing.inc"); exit; }
 if($YearofBirth == "") { $missing = "Year of Birth"; include("inc\missing.inc"); 
exit; }
 if($DriversLicenseNumber == "") { $missing = "Drivers License Number"; 
include("inc\missing.inc"); exit; }
 if($DriversLicenseState == "") { $missing = "Drivers License State"; 
include("inc\missing.inc"); exit; }

Include file

<?php

 echo("<center><font color='#000000' face='verdana' 
size='7'><b>Oops!<br><br></font><font color='#000000' face='verdana' size='4' 
class='ninept'>The $missing field was not filled out.<br><br></b></font>\n"); 
 echo("<font color='#000000' face='verdana' size='4' class='ninept'><b>Please go <A 
HREF='../creditapp.php'>back to the form</A> and fill out the $missing field. Thank 
you.</b></font></center>\n");

?>


I am a total newb...this was not writen by me but i am the one responsible for getting 
php working properly on this nt server...any help would be greatly appreciated.


Reply via email to