Go Back   Sports Car Forum - MotorWorld.net > Hobbies and Leisure Time > Computers, Consoles, Gadgets And Gizmos



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 09-04-2004, 02:39 AM   #1
5vz-fe
Regular User
 
Join Date: Jun 2003
Location: Toronto
Posts: 6,167
Default PHP Help Needed!!!

I am just playing with PHP with different webservers (IIS and Apache)
Running into one interesting probelm, I can't get html forms to pass variables into php script. Can anyone tell me if I did something wrong with the conf or ini files?

HTML:
<form method="POST" action="example18.php3">
<div align="left">

<font face="BankGothic Md BT">Admin password?</font>
<input type="password" name="pw" size="14"><input type="submit" value="Submit"></p>
</div></form>

PHP:
<?
$adminpass = "test123";
if ($pw == $adminpass)
{
print("Welcome to the administration area!");
}
else
{
print("Wrong password");
}
?>

When I run the html and submit it tells me undefined variable pw.

Anyone know why?
__________________
5vz-fe is offline   Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump