Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Help registration lavalair

  1. #1
    Member
    Join Date
    Mar 2012
    Posts
    43
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Rep Power
    0

    Default Help registration lavalair

    Good day guys. Anyone can tell me how to send to email a random password when they register? Thanks

  2. #2
    Junior Member
    Join Date
    May 2011
    Location
    Philippines
    Posts
    26
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    Quote Originally Posted by stratosphere [Only registered and activated users can see links. Click Here To Register...]
    Good day guys. Anyone can tell me how to send to email a random password when they register? Thanks
    PHP Code:
    $random_number rand(5000000000,9000000000);
    $rform .= "Your Password:<br/><input type=\"hidden\" name=\"pwd\" value=\"$random_number\"/><br/>";
    $rform .= "Retype Password:<br/><input type=\"hidden\" name=\"cpw\ value=\"$random_number\"/><br/>"
    something like this

  3. #3
    Member
    Join Date
    Mar 2012
    Posts
    43
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Rep Power
    0

    Default

    thanks but not working

  4. #4
    Senior Member analyzer's Avatar
    Join Date
    Mar 2011
    Posts
    101
    Thanks
    4
    Thanked 3 Times in 3 Posts
    Rep Power
    3

    Default

    PHP Code:
    $gen_pass =  rand(11111,99999);

    // remove the password input field in your registration form.

    // inserting in ur sql
    password='".$gen_pass."'

    // mail it
    $message "Helo, this is your password: .$gen_pass.";

    $check mail("abc@example.com"$message"Registration@mysite.com");

    if(
    $check){
    echo 
    "Mail sent!";} 

  5. #5
    Junior Member
    Join Date
    Apr 2011
    Location
    Oriental Mindoro
    Posts
    20
    Thanks
    7
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Default

    nice, i need this too...where do i put this code??in register.php or in core.php??

  6. #6
    Senior Member analyzer's Avatar
    Join Date
    Mar 2011
    Posts
    101
    Thanks
    4
    Thanked 3 Times in 3 Posts
    Rep Power
    3

    Default

    if you are using lavalair you must put it on core.php where auto message and registration details insert to mysql are there. If i'm n0t mistaken the name of that function is last_check.

  7. #7
    Member
    Join Date
    Mar 2012
    Posts
    43
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Rep Power
    0

    Default

    i cant find where can i put that code

  8. #8
    Senior Member analyzer's Avatar
    Join Date
    Mar 2011
    Posts
    101
    Thanks
    4
    Thanked 3 Times in 3 Posts
    Rep Power
    3

    Default

    Just put it in the part wherein everything goes fine after the input checks or where "registration complete" message is located.

  9. #9
    Member
    Join Date
    Mar 2012
    Posts
    43
    Thanks
    7
    Thanked 3 Times in 3 Posts
    Rep Power
    0

    Default

    did you mean like this on core?
    PHP Code:
       $rform .= "$ue Screename:(lowercase)<br/><input name=\"uid\" format=\"*x\" maxlength=\"8\" value=\"$uid\"/><br/>";
    $gen_pass rand(11111,99999);
     
    pwd='".$gen_pass."' 
    Last edited by arnage; 27-04-12 at 20:22.

  10. #10
    Member
    Join Date
    Feb 2011
    Posts
    41
    Thanks
    6
    Thanked 5 Times in 5 Posts
    Rep Power
    0

    Smile

    look for registration successfully completed..
    then put this below..
    PHP Code:
    $time time();
    $pass md5($time);
    $newpasssubstr($pass,0,6); 
    ////send password to user email using phpmail 
    $msg "Your password: ".$newpass."";
    $subj "Registration detailss";
    $headers 'xdos' "\r\n" .
    'Reply-To: jhunwap@gmail.com' "\r\n" .
    'X-Mailer: PHP/' phpversion();
    mail($email$subj$msg$headers);

    ///now insert/ update the password of the user 

Page 1 of 3 123 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Help in Registration?
    By kolkatawap in forum Coding Forum
    Replies: 3
    Last Post: 21-06-11, 12:23
  2. antiflood in registration @ lavalair
    By shakil420 in forum Scripts Forum
    Replies: 11
    Last Post: 12-11-10, 17:23
  3. Registration
    By icedroplet1987 in forum Site / Script testing and error fixing
    Replies: 5
    Last Post: 09-10-09, 14:50
  4. after registration
    By riderz in forum REQUEST FORUM
    Replies: 1
    Last Post: 04-09-09, 13:45
  5. 18+ registration
    By riderz in forum REQUEST FORUM
    Replies: 4
    Last Post: 02-09-09, 05:08

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19