djclewes Posted July 14, 2010 Share Posted July 14, 2010 i need help with this login script this works perfect as a login script but i need to add another action to it. it is action="login.php" but i need it to be action="login.php" and action="register.php" so i can integrate my chat room along with my login script please help you nice people. <?php /*************************************************************************** * * Copyright © 2007. All Rights Reserved. * ------------------------------------- * Version: 3.0 * ------------------------------------- * **************************************************************************** * Page: login.php ***************************************************************************/ include("include/joovili.settings.php"); include("modules/login.functions.php"); if (isset($_POST['login'])) { $login = user_login(); } ?> <?php include_once("themes/".SITETHEME."/joovili.header.php"); ?> <table width="100%" border="0"> <tr> <td width="60%" valign="top"> <table width="100%" border="0" cellpadding="4"> <tr> <td class="text_1_css"><?php echo $lang['login'];?></td> </tr> <tr> <td class="text_2_css"><?php echo $lang['login_message'];?></td> </tr> </table> <?php echo $login;?> <img src="themes/<?php echo SITETHEME;?>/images/007.gif" height="10" /> <table width="100%" border="0" cellpadding="4" class="text_2_css"> <form name="login" id="login"action="login.php" method="post"> <tr> <td width="25%"><?php echo $lang['common_username'];?></td> <td width="75%"><input name="username" type="text" class="form_field" style="width: 50%;" /></td> </tr> <tr> <td><?php echo $lang['common_password'];?></td> <td><input name="password" type="password" class="form_field" style="width: 50%;" /></td> </tr> <tr> <td> </td> <td><a href="forgot.php" class="text_4_css"><?php echo $lang['login_forgot'];?></a></td> </tr> <tr> <td> </td> <td><input name="login" type="submit" class="form_button" value="<?php echo $lang['login_button'];?>" /></td> </tr> </form> </table></td> <td width="40%"><?php echo $joovili_settings['joovili_advert_group_3'];?></td> </tr> </table> <?php include_once("themes/".SITETHEME."/joovili.footer.php");?> Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/ Share on other sites More sharing options...
trq Posted July 14, 2010 Share Posted July 14, 2010 A form cannot be posted to two locations, you will need to combine the two scripts into one. Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1085764 Share on other sites More sharing options...
djclewes Posted July 14, 2010 Author Share Posted July 14, 2010 how would i do that when there both login scripts. Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1085766 Share on other sites More sharing options...
trq Posted July 14, 2010 Share Posted July 14, 2010 They likely take a username & password and check them against a database, then setting some sort of flag to state that the user is logged in. All you need do is check two databases. Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1085768 Share on other sites More sharing options...
djclewes Posted July 14, 2010 Author Share Posted July 14, 2010 oh they use the same users database Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1085772 Share on other sites More sharing options...
trq Posted July 14, 2010 Share Posted July 14, 2010 Well, even simpler then. Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1085774 Share on other sites More sharing options...
djclewes Posted July 14, 2010 Author Share Posted July 14, 2010 so are you saying i need 2 login boxes 1 for the chat room and one for the members area cause i think that would look stupid with 4 boxes on a login page. Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1085775 Share on other sites More sharing options...
trq Posted July 14, 2010 Share Posted July 14, 2010 No, that is not at all what I am saying. I am saying you need to combine the processing scripts (the scripts your form posts to) into one. Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1085783 Share on other sites More sharing options...
djclewes Posted July 14, 2010 Author Share Posted July 14, 2010 sorry i dont know how to do that but if your intrested in doing it for me i will pay a few dollars or pound via paypal here is the 2nd login script its very basic <!-- Copy and paste the following HTML code to the web page that you would like people to login from. Edit this code as you see fit. --> <form method=POST action="launch.php" target="sigmachat_popup"> <table border=0> <tr> <td> Username: </td> <td> <input type=text name="username" value="" size=32> </td> </tr> <tr> <td> Password: </td> <td> <input type=password name="password" value="" size=32> </td> </tr> <tr> <td> </td> <td align=right> <input type=submit name="submit" value="Login"> </td> </tr> </table> </form> <!-- End copy/paste --> Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1085790 Share on other sites More sharing options...
trq Posted July 14, 2010 Share Posted July 14, 2010 They are not login script. They are html forms that post to php scripts. If your looking for a programmer, we have a freelance board. Otherwise, your going to need to attempt this yourself and post relevant code when you have problems. Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1085795 Share on other sites More sharing options...
djclewes Posted July 14, 2010 Author Share Posted July 14, 2010 from what i can see 1 is html and one is php would the include command work Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1085799 Share on other sites More sharing options...
trq Posted July 14, 2010 Share Posted July 14, 2010 I'm not sure you have understood anything I have said. Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1085800 Share on other sites More sharing options...
djclewes Posted July 14, 2010 Author Share Posted July 14, 2010 sorry i am new to php ive used html and htm but not php i think im guna need to pay someone to do this where is the freelance section. Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1085801 Share on other sites More sharing options...
trq Posted July 14, 2010 Share Posted July 14, 2010 http://www.phpfreaks.com/forums/index.php/board,8.0.html Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1085805 Share on other sites More sharing options...
djclewes Posted July 19, 2010 Author Share Posted July 19, 2010 i have fixed this problem now but i am looking for someone who can create a footer bar like face book with a online pop up one on one chat box like facebook and it needs to be integrated with prochat and look a bit like the prochat footerbar. this is a future creation i need when i have the money. but i would like people to leave quotes now so when funds are there i can get it straight away. Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1088061 Share on other sites More sharing options...
trq Posted July 19, 2010 Share Posted July 19, 2010 i have fixed this problem now but i am looking for someone who can create a footer bar like face book with a online pop up one on one chat box like facebook and it needs to be integrated with prochat and look a bit like the prochat footerbar. this is a future creation i need when i have the money. but i would like people to leave quotes now so when funds are there i can get it straight away. We have a freelance board for such requests. Link to comment https://forums.phpfreaks.com/topic/207702-need-help-with-login-script-actions/#findComment-1088081 Share on other sites More sharing options...
Recommended Posts