fork download
  1. <?php
  2. <form action="punlic_html/PHP/answers/answer1.php" method="post">
  3. Answer: <input type:"text" name:"ans1"/>
  4. <input type="sumbit" />
  5. </form>
  6. $_GET["ans1"];
  7. $a=Answer1("$_GET["ans1"]");
  8. if ($a=="CorrectAnswer") echo "Well done! Correct!";
  9. else
  10. echo "Try again"
  11. ?>
Runtime error #stdin #stdout 0.02s 13664KB
stdin
Standard input is empty
stdout
Parse error: syntax error, unexpected '<' in /home/zkxVzu/prog.php on line 2