I have just begun with php and i have a problem with the post method. when i copied this source from a web site it doesn't work.
<?php
if ($submit == "click"){
echo "Hello, $UserName";
}
else{
echo '
<html><body>
<form method="post" action="input.php">
Enter Your Name
<input type="text" name="UserName"></input><br>
<input type="submit" name="submit" value="click"></input>
</form>
</body></html>
';
}
?>
Can sombody explain why ??????
Thanx