Hey there,i just started learning php and i'm having some problem in forms.
This is the code.
<html> <form> Enter username<br> <input type=text name=username><br><br> Enter password<br> <input type=password name=pass><br> <input type=submit value="Submit"> </form> <?php printf("Username is %s<br>", $username); printf("Password is %s",$password); ?> </html>
The problem in the code is that when i click the submit button,it shows that the two variables username and password dont have any values and have not been declared.
Please let me know about the problem.Thanks.