I am having a problem. I just installed PHP on Apache (Windows 2000 Server) and I cannot retrieve form variables.
I have run scripts so far successfully, but I cannot get a form to work. When you submit the form, it only "refreshes" the page. It does not post the values.
I have tried to find the problem, but I can't.
<form name="form2" method="post" action="<?php echo $PHP_SELF ?>">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
</tr>
<tr>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong>Welcome
<?php print $f_name;?>... </strong></font></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif"><strong><u>Member
Login</u>:</strong> </font></td>
</tr>
<tr>
<td><img src="img/blank.gif" width="1" height="5"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="19%"><div align="right"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Member
Name:</font></div></td>
<td width="1%"> </td>
<td width="80%"><input name="username" type="text" id="username"></td>
</tr>
<tr>
<td><div align="right"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">P</font><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">assword:</font></div></td>
<td> </td>
<td><input name="password" type="password" id="password"></td>
</tr>
<tr>
<td colspan="3"><img src="img/blank.gif" width="1" height="5"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><INPUT name=Login type=image id="Login" VALUE="search" src="img/button_login.gif" height="20"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="15%"><a href="member_signup.php"><img src="img/button_signup.gif" width="60" height="20" border="0"></a></td>
<td width="85%"><font color="#FFFFFF" size="2" face="Verdana, Arial, Helvetica, sans-serif">Not
a member?</font></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
</table>
</form>
Sorry for the mess, but I have it in some messy tables, but that is the entire form code. For example, the php works fine for the $f_name variable, it just displays the default first name.
I can't even print the values that were entered and submitted....it doesnt submit.
I don't think it is a code thing, b/c I have used this code on another server and it works fine.
Any help would be appreciated....
thanks in advance
Van