The008 Posted May 1, 2007 Share Posted May 1, 2007 Hello guys!!!Please I need to know how could I post some data using a form (<form method='post' action='somefile.php'>) but without need to click the submit button (<input type='submit' value='Submit'>).Bye Link to comment Share on other sites More sharing options...
ripken204 Posted May 1, 2007 Share Posted May 1, 2007 well you'll need to give us an example here...do you want the page to automatically go to somefile.php when you do something? if so then what is that action that you are doing? Link to comment Share on other sites More sharing options...
The008 Posted May 2, 2007 Author Share Posted May 2, 2007 ah I was planning on making such as login system, that the first page would post the data (login, pass, etc.) to a second page that will validade the info and then post the data (if correct) to a third file that will do something more.But it's ok, I already got the answer. The keyword is: Javascript.If you want, I can post my code here later.Bye! Link to comment Share on other sites More sharing options...
ripken204 Posted May 2, 2007 Share Posted May 2, 2007 what did you use javascript for exactly? are you just pulling the usernames/pass from a DB? all you would need to do is check the posted info with the DB info.from there what i did was an if statement for my home page once logged in. if the username+pass were correct, then show the homepage, else display that the login info is incorrect and have a link back to the login page. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now