When i try and pass variables form a form, they do not work. Any example from the net seems to not work and my php page does not recognise that variables have been passed. I shall give you an example below. When i click submit on the form, the ?username=username&password=password getzs added on to the url, as it should but the pho dont pick it up.
This page is called mypage.php. Taken from an example that dont work:
Code: Select all
<?php
if (isset($submit) && $submit=="yes")
{
echo "Thank you for submitting the form"
} else {
?>
<form action="mypage.php" action=post>
<input type=text name=username>
<input type=text name=password>
<input type=submit name=submit value=yes>
</form>
<?php
}
?>Please help. I am new to php. I am amazed at the ease so far but cannot get around this problem!!! But i can use mysql happily with php!!