Honesty Rocks! truth rules.

Help With Form Actions.

HOME      >>       Programming


<h1>Login</h1><form action="" method="post"><table align="left" border="0" cellspacing="0" cellpadding="3"><tr><td>Username:</td><td><input type="text" name="user" maxlength="30"></td></tr><tr><td>Password:</td><td><input type="password" name="pass" maxlength="30"></td></tr><tr><td colspan="2" align="left"><input type="checkbox" name="remember"><font size="2">Remember me next time</td></tr><tr><td colspan="2" align="right"><input type="submit" name="sublogin" value="Login"></td></tr><tr><td colspan="2" align="left"><a href="register.php">Join</a></td></tr></table></form>

I have the above form in a php script, it's a login script (as you can probably tell) and when you go to http://forums.xisto.com/no_longer_exists/ which is the login page (or change the end to login.php) the above form doesn't show up!!! I think its because of the
<form action="" method="post">
part of it but I'm not too sure =[. Please help me!


The action attribute on a form is used to specify where you want the posted data to be submitted to. It has nothing to do with a missing main.php page if that is what your asking. If no action is specified then the form will submit to its parent page being the page where the form is in your case index.php.