fork download
  1. //Код страницы на php
  2. <html>
  3. <head>
  4. <title>Test PHP 2</title>
  5. </head>
  6. <body>
  7. <?php
  8. //$message = 123;
  9. //$name = 345;
  10. echo $message.", ".$name;
  11. ?>
  12. </body>
  13. </html>
  14.  
  15. //Код на html
  16. <form name="myform" method="get" action="testphp_2.phtml">
  17. <br>Message:<br>
  18. <input type="text" name="message">
  19. <br>Name:<br>
  20. <select type="text" name="name">
  21. <option>Dmitry</option>
  22. <option>Petooh</option>
  23. </select>
  24. <br><input type="submit" value="Process data">
  25. </form>
Success #stdin #stdout #stderr 0.02s 24448KB
stdin
Standard input is empty
stdout
//Код страницы на php
<html>
<head>
	<title>Test PHP 2</title>
</head>
<body>
	, </body>
</html>

//Код на html
<form name="myform" method="get" action="testphp_2.phtml">
<br>Message:<br>
<input type="text" name="message">
<br>Name:<br>
<select type="text" name="name">
	<option>Dmitry</option>
	<option>Petooh</option>
</select>
<br><input type="submit" value="Process data">
</form>
stderr
PHP Notice:  Undefined variable: message in /home/egusiy/prog.php on line 10
PHP Notice:  Undefined variable: name in /home/egusiy/prog.php on line 10