Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's
Author Message
msimonds
Regular
Regular



Joined: Jul 15, 2003
Posts: 56
Location: Dallas

PostPosted: Wed Dec 24, 2003 10:00 am Reply with quote

I am trying to and I will figure it out somehow, trying to add a mod for new users to that will allow new users to check a radio box and then have it emailed along with the new user signup on the account that is sent to me everytime a member signs up!

it is here: http://testsite.sportsrant.com/modules.php?name=Your_Account&op=new_user

Code:
echo "<b>"._REGNEWUSER."</b> ("._ALLREQUIRED.")<br><br>\n"

                ."<table cellpadding=\"0\" cellspacing=\"10\" border=\"0\">\n<form action=\"modules.php?name=$module_name\" method=\"post\">\n"
                ."<tr><td>"._NICKNAME.":</td><td><input type=\"text\" name=\"username\" size=\"30\" maxlength=\"25\"></td></tr>\n"
                ."<tr><td>"._EMAIL.":</td><td><input type=\"text\" name=\"user_email\" size=\"30\" maxlength=\"255\"></td></tr>\n"
                ."<tr><td>"._PASSWORD.":</td><td><input type=\"password\" name=\"user_password\" size=\"11\" maxlength=\"40\"></td></tr>\n"
                ."<tr><td>"._RETYPEPASSWORD.":</td><td><input type=\"password\" name=\"user_password2\" size=\"11\" maxlength=\"40\"><br><font class=\"tiny\">("._BLANKFORAUTO.")</font></td></tr>\n"
                ."<tr><td><b>"._INFO."</b></tr></td>\n"
                ."<tr><td><input type=\"radio\" name=\"info\" value=\"search\" size=\"25\">Search Engine<br></td></tr>\n"
            ."<tr><td><input type=\"radio\" name=\"info\" value=\"friend\" size=\"25\">Friend<br></td></tr>\n"
            ."<tr><td><input type=\"radio\" name=\"info\" value=\"ad\" size=\"25\">Advertisement<br></td></tr>\n"
            ."<tr><td><input type=\"radio\" name=\"info\" value=\"link\" size=\"25\">Link<br></td></tr>\n"
            ."<tr><td><input type=\"radio\" name=\"info\" value=\"other\" size=\"25\">Other<br></td></tr>\n";
            echo "<tr><td colspan='2'>\n"
                ."<input type=\"hidden\" name=\"op\" value=\"new user\">\n"
                ."<input type=\"submit\" value=\""._NEWUSER."\">\n";


the value is being held in the variable $info and if I am not mistaken I should be able to add this to the email, but that is where I am getting stuck!

in the function finishnewuser I have added this to the function
Code:
function finishNewUser($username, $user_email, $user_password, $random_num, $info) {


and then in the email send, I have added $ info to this this:

Code:
if ($sendaddmail == 1) {

                            $to = $adminmail;
                            $from = $user_email;
                            $subject = "$sitename - "._MEMADD."";
                            $message = "$username has been added to $sitename.\n-----------------------------------------------------------\n, $info\n Do not reply to this message!!";
                            mail($to, $subject, $message, "From: $from\nReturn-Path: $from\nX-Mailer: PHP/" . phpversion());
                        }


I have tested it and the info is not getting passed!

What am I doing wrong?
 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Maku
New Member
New Member



Joined: Sep 24, 2003
Posts: 15
Location: Estonia

PostPosted: Sun Dec 28, 2003 3:45 pm Reply with quote

Great to know where visitors find your site. When you are done in this tweak.....let me know Mr. Green
 
View user's profile Send private message Visit poster's website MSN Messenger
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> How To's

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©