Enter the maximum price (range is between 500 and 2000)
"; //carriage return twice print "The price you entered = " . "$n1" . "
"; //print to screen the amount entered print "
Properties found:-

"; $fileName="propDetails.txt"; //puts file called propDetails into variable filename $filePointer = fopen($fileName,"r"); //opens propDetails for read $aFile=file($fileName); //puts file contents of propDetails into array called aFile for($myCount=0; $myCount
\n"; //create a checkbox called $boxname, eg box0, box1, box2 etc } //print a new line after each inner loop (4 times) iteration if condition is met } //end of outer loop if (isset($_POST['box1'])) { $cBoxVal = $_POST['box1']; print "

Checkbox value is $cBoxVal
"; }//Use 'isset' because if it's not set the program will fail, apparently function getValue($text,$position) //create the two variables to hold the passed values { $intoArray = explode(",",$text); //explode reads the text according to the passed values return $intoArray[$position]; //returns the text to where it was called in the code, puts the result into $aWord } //end of function getValue fclose ($filePointer); //close filePointer ?>