Jump to content

RitchieGunz

Members
  • Posts

    57
  • Joined

  • Last visited

    Never

Posts posted by RitchieGunz

  1. I keep getting this error and I've tried both making a custom header and changing the php.ini file

     

     

    Warning: mail() [function.mail]: "sendmail_from" not set in php.ini or custom "From:" header missing in C:\xampplite\htdocs\xampp\flexcusten\flexcusten\forgetpass.php on line 24

     

     

     

    
    <?php
    require("./CustomSql.inc.php");
    $db = new CustomSQL($DBName);
    $showtable = true;
    $errortag = false;
    if (!empty($sendpass)) {
    
    if (empty($email)){
    $errortag = true;
    $errormsg = $error_emailempty;
    }
    
    $password = $db->emailcheck($email);
    if ($password=='0') {
    $errortag = true;
    $errormsg = $error_notamember;
    }
    
    if (!$errortag){
    $headers = 'From: ritchiegunz@hotmail.com' . "\r\n" .
    $message = "Hi Fellow Member";
    $message .= "Your password is \n";
    $message .= $password;
    mail("$headers","$email","$front_password","$message");
    $showtable = false;
    }
    
    }
    
    ?>
    
    
    

  2. Yup  ;D .. This is that chunk of lines

     

     

     

    
    //Tell the script that something went wrong
    $pass = FALSE;
    }
    
    
    
    //If something went wrong, send them back to fix their mistakes
    if ($pass == FALSE)
    {
    die();
    
    //They failed the exam
    //For some reason they have failed or check system
    
    //You will need to send the back to fix the problem before we continue
    echo "<meta http-equiv=\"refresh\" content=\"1;url=signup.php\">";
    
    //I like to kill the script at this point.
    die();
    }
    else
    {
    //They have entered all the required information
    //Their username, password, and email are acceptable
    
    
    

  3. Username: ri

    password: george

    varpassword: george

    email: ritchie@george.net

     

    What error did you get? (Username too short)

     

     

     

    Then try:

    Username: ritchie$%

    password: george

    varpassword: george

    email: ritchie@george.net

     

    What error did you get? (Usernames may only contain alphanumeric characters, dashes (-) and underscores (_))

     

     

     

    Now to try the passwords

     

    Then try:

    Username: ritchie

    password: ge

    varpassword: ge

    email: ritchie@george.net

     

    What error did you get? (Your password was too short!)

     

     

     

    Then try:

    Username: ritchie

    password: george$

    varpassword: george$

    email: ritchie@george.net

     

    What error did you get? (Passwords may only contain alphanumeric characters.)

     

     

     

    Then try:

    Username: ritchie

    password: george

    varpassword: ritchie

    email: ritchie@george.net

     

    What error did you get? (Your passwords did not match!)

     

     

     

     

    Now for the email...

     

    Then try:

    Username: ritchie

    password: george

    varpassword: george

    email: r2

     

    What error did you get? (You have entered an invalid E-mail address.)

     

     

     

    Then try:

    Username: ritchie

    password: george$

    varpassword: george$

    email: ritchie@ge#&(!ge.net

     

    What error did you get? (Passwords may only contain alphanumeric characters. and You have entered an invalid E-mail address.)

     

  4. $check = $db_object->query("SELECT username, password FROM student WHERE username = '".$_POST

     

    Thats line 35. Could it be the -> before the query?

     

    Sorry for intruding, but Im trying to learn myself  ;D

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