problem with php script?

JonnyK

New member
why is it the following script doesn't display when I enter a value it does not display it on the screen, what is wrong?

<?php
if (isset($_POST['text']))
{
echo $_POST['text'].'was submitted via the POST method<br>';
}

echo '
<form action="post.php" method="POST">
<input type="text" name="text">
<input type="submit" value="Submit">
</form>
';
?>

Thanks
 
Back
Top