IIS, PHP, Mysql and not passing variables in HTML Forms
Posted: Thu Jul 03, 2003 5:37 pm
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:
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. Also, i have the standard install of PHP, using PHP.ini, not the php.ini-recommended, as remembered from my linux days. This does not appear with the IIS windows version, just the standard php.ini only exists. That is all. Is there a setting in there or in IIS? I have also installed lockdown for IIS, the microsoft security thing. Would this affect the situation??
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!!
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!!