Search results

  1. J

    Need help making a PHP ?

    it should search for a last name. If the last name is in the table the PHP script should print: first-name last-name Your date of birth is yyyy-mm-dd. Where first-name and last-name is a name of a person. yyyy is a year, mm is a month, and dd is a day. On the other hand if the last name is...
  2. J

    Why won't this php file work correctly ?

    <?php $s = $_POST["lname"]; $x = file_get_contents("a.txt"); if (strpos($x, $s) !== false) { print($s + " is on the list"); } else { print($s + " is not on the list"); } ?> php is suppose to tell you if a word is on a.text file. the text file has 50 words in it . i did the JavaScript for it...
  3. J

    Can you convert this script to PHP for me ?

    <html> <body> <script language="JavaScript"> for (i=1; i <= 7; i++) { document.write ('<font size= '); document.write (i); document.write (' > Hello </font> <br>'); } </script> </body> i tried and did this [its wrong ] <?php for (i=1; i <= 7; i++) { print ('<font size= '); print (i); print...
Back
Top