Mmore Posted March 19, 2008 Share Posted March 19, 2008 Hello fellow PHP-freaks, For a while I've been working a code that should submit several forms at once. However, it just doesn't want to work. The code should present the user with a form, in which he can types in his username and password. After having that data and pressing on login it uses AJAX to send this request to phpBB3 and Wikimedia. I've got the full code online. The file itself: fml.php - http://www.plaatscode.be/6166 The class: http://www.plaatscode.be/6167 These are the live links that should be working, but aren't: The forums: http://www.fmliveonline.com/forums/ The wikimedia: http://www.fmliveonline.com/wiki/ Does anyone spot any obvious errors in this piece of coding? Thanks for the help.. Link to comment https://forums.phpfreaks.com/topic/96942-submitting-several-forms-at-once/ Share on other sites More sharing options...
Mmore Posted March 20, 2008 Author Share Posted March 20, 2008 If it helps any, this is the code from the forms.. phpBB3: <form action="./ucp.php?mode=login" method="post" id="login"> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> <h2>Login</h2> <fieldset class="fields1"> <dl> <dt><label for="username">Username:</label></dt> <dd><input type="text" tabindex="1" name="username" id="username" size="25" value="" class="inputbox autowidth" /></dd> </dl> <dl> <dt><label for="password">Password:</label></dt> <dd><input type="password" tabindex="2" id="password" name="password" size="25" class="inputbox autowidth" /></dd> <dd><a href="./ucp.php?mode=sendpassword">I forgot my password</a></dd> </dl> <dl> <dd><label for="autologin"><input type="checkbox" name="autologin" id="autologin" tabindex="4" /> Log me on automatically each visit</label></dd> <dd><label for="viewonline"><input type="checkbox" name="viewonline" id="viewonline" tabindex="5" /> Hide my online status this session</label></dd> </dl> <dl> <dt> </dt> <dd><input type="hidden" name="redirect" value="index.php" /> <input type="hidden" name="sid" value="a375b05fcbdc88cdd1a2336faa501b5a" /> <input type="submit" name="login" tabindex="6" value="Login" class="button1" /></dd> </dl> </fieldset> </div> <span class="corners-bottom"><span></span></span></div> </div> <div class="panel"> <div class="inner"><span class="corners-top"><span></span></span> <div class="content"> <h3>Register</h3> <p>In order to login you must be registered. Registering takes only a few moments but gives you increased capabilities. The board administrator may also grant additional permissions to registered users. Before you register please ensure you are familiar with our terms of use and related policies. Please ensure you read any forum rules as you navigate around the board.</p> <p><strong><a href="./ucp.php?mode=terms">Terms of use</a> | <a href="./ucp.php?mode=privacy">Privacy policy</a></strong></p> <hr class="dashed" /> <p><a href="./ucp.php?mode=register" class="button2">Register</a></p> </div> <span class="corners-bottom"><span></span></span></div> </div> </form> And WikiMedia: <div id="userloginForm"> <form name="userlogin" method="post" action="/wiki/index.php?title=Special:Userlogin&action=submitlogin&type=login"> <h2>Log in</h2> <p id="userloginlink"><b>You need a forum account to login.</b><br /><a href="../forums/ucp.php?mode=register">Click here to create an account.</a></p> <div id="userloginprompt"><p>You must have cookies enabled to log in to FMLive Online Wiki. </p></div> <table> <tr> <td align='right'><label for='wpName1'>Username:</label></td> <td align='left'> <input type='text' class='loginText' name="wpName" id="wpName1" tabindex="1" value="Mmore" size='20' /> </td> </tr> <tr> <td align='right'><label for='wpPassword1'>Password:</label></td> <td align='left'> <input type='password' class='loginPassword' name="wpPassword" id="wpPassword1" tabindex="2" value="" size='20' /> </td> </tr> <tr> <td></td> <td align='left'> <input type='checkbox' name="wpRemember" tabindex="4" value="1" id="wpRemember" /> <label for="wpRemember">Remember my login on this computer</label> </td> </tr> <tr> <td></td> <td align='left' style="white-space:nowrap"> <input type='submit' name="wpLoginattempt" id="wpLoginattempt" tabindex="5" value="Log in" /> </td> </tr> </table> </form> Link to comment https://forums.phpfreaks.com/topic/96942-submitting-several-forms-at-once/#findComment-496582 Share on other sites More sharing options...
Mmore Posted March 20, 2008 Author Share Posted March 20, 2008 Dammit I forgot to include a link to the file. http://www.fmliveonline.com/fml.php Link to comment https://forums.phpfreaks.com/topic/96942-submitting-several-forms-at-once/#findComment-496588 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.