Помогите новичку... что десь не так?
Код |
<html> <body> <form name="form" action="index.php" method="post"> <input name="x" type="text"> <input name="y" type="submit" value="oK"> </form> <?php $x=$_POST['x']; if(isset($_POST['submit'])) { echo $x; } else {echo "tralala";} ?> </body> </html> |
PHP |
isset($_POST['submit']) |
PHP |
isset($_POST['y']) |
HTML |
<html> <body> <form name="form" action="1.php" method="post"> <input name="x" type="text"> <input name="y" type="submit" value="oK"> </form> <?php $x=$_POST['x']; if(isset($_POST['y'])) { echo $x; } else {echo "tralala";} ?> </body> </html> |