Form post problem

wxdqz

New Member
I was testing whether php works on my system or not. I c/p this simple example from PHP World, but it does not work. The form shows ok, but nothing happens after clicking submit, exept it clears all fields.
It seems that the IF condition never happens(?) I've tried many things, but nothing seems to work. Hopefully someone has encountered similar problems. The code is below. Thank you in advance.

<?php
if ($submit == "click"){
echo "Hello, $UserName";
}
else{
echo '
<body>
<form method="post" action="input.php3">

Enter Your Name
<input type="text" name="UserName"></input><br>

<input type="submit" name="submit" value=http://www.phpbuilder.com/board/archive/index.php/"click"></input>

</form>
</body>';
}

?>
 
Back
Top