smeee_b Posted March 21, 2009 Share Posted March 21, 2009 Hi I am very new to PHP so forgive me if this question has a simple solution. I am trying to code a simple login script in PHP but I am having trouble passing the username and password input to another form. I managed to get it working with the username and password input boxes underneath eachother, with an image as the submit button, but I cannot get it working when I place the input boxes and submit inage in different cells of a table. The code is below: <html> <head> <title>Login</title> </head> <body> <table width="639" height="369" border="1"> <tr> <td>*LOGIN USERNAME*</td> </tr> <tr> <td>*LOGIN PASSWORD*</td> </tr> <tr> <td>*SUBMIT IMAGE*</div></td> </tr> </table> </body> </html> The text between the *s are the username, password and submit image fields. Any help would be more than appreciated. Thanks a lot in advance Quote Link to comment Share on other sites More sharing options...
BigTime Posted March 21, 2009 Share Posted March 21, 2009 you are missing a <form action="*"> to tell it what to do when submit is selected ;P Quote Link to comment Share on other sites More sharing options...
ashton321 Posted March 21, 2009 Share Posted March 21, 2009 If you are unsure what to do next check out this login system tutorial at http://php.about.com/od/finishedphp1/ss/php_login_code.htm Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.