Jump to content
xisto Community
Sign in to follow this  
chappill

Help With Form Actions.

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.