I have windows XP Pro, IIS 5 and PHP4 installed. It all works nicely (phpinfo() does anyway)
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:
<?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=add>
</form>
<?php
}
?>
This form re appears and does not say thank you, just the url at the address bar is updated as mentioned above and the form re appears with the form like it never got submitted.
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!!