satant Posted April 29, 2007 Share Posted April 29, 2007 hi i have mafia game i need when the user make register send to him link whith activation link to activate his acc i make the email but i don't know how to make the link to activation ! ??? /*Begin email her*/ mail($email,"Frozen fear Signup"," Hello $name,- Your account has been made on Frozen Fear Member Information: Username = $name E-mail = $email Password = $pass1 Home City = $pick_city1 kindly regards, Admin team Frozen Feart © ","From: Frozen Fear <no_reply@Frozenf.com>") or die ("mail error"); /*End email her*/ } else { echo "$error<br><br><a href='?p=register'><strong>Retry</strong></a>"; } Quote Link to comment Share on other sites More sharing options...
Heero Posted April 29, 2007 Share Posted April 29, 2007 WHy don't you just have an http link from your message? Also store your message body in a variable. That is hard to read. Quote Link to comment Share on other sites More sharing options...
satant Posted April 29, 2007 Author Share Posted April 29, 2007 i don't understanf u Quote Link to comment Share on other sites More sharing options...
Heero Posted April 29, 2007 Share Posted April 29, 2007 The third parameter of the mail function is where you specify your message body. Just include html code in that message body. So if you want to like have an activation link, you have should some code like: <a href="activation.php">Click here to activate</a> Quote Link to comment Share on other sites More sharing options...
satant Posted April 29, 2007 Author Share Posted April 29, 2007 ok i know the but i think must make script to activation Quote Link to comment Share on other sites More sharing options...
Heero Posted April 30, 2007 Share Posted April 30, 2007 I am not sure what you really want... You had asked how to make a link to the activation...so you already know how to do that? Now you want to make a script that actually activates an account? Quote Link to comment Share on other sites More sharing options...
skali Posted April 30, 2007 Share Posted April 30, 2007 1- add a field in your database table named 'active' it can be a tinyint or enum 2- set its default value to 0, representing inactive 3- create an activation script that will change the value of this field to 1, meaning active 4- after registration send a link to users email address with some 'id' may be userid or username and this link will be to your activation script 5- once clicked the activation link will bring user to activation script that will validate user on the basis of the id and will activate his registration Quote Link to comment Share on other sites More sharing options...
satant Posted April 30, 2007 Author Share Posted April 30, 2007 imake t ad the link be as this http://www.frozenf.net/reg_success.php/?login=punishment&enabled=yes and it gives page can not found Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.