HOME       >>       Programming

Help With Form Actions.


<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.


Xisto.com offers Free Web Hosting to its Members for their participation in this Community. We moderate all content posted here but we cannot warrant full correctness of all content. While using this site, you agree to have read and accepted our terms of use, cookie and privacy policy. Copyright 2001-2019 by Xisto Corporation. All Rights Reserved.