Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9147459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:59:36+00:00 2026-06-17T10:59:36+00:00

I have a php script :) Basically users signup receive an email and click

  • 0

I have a php script 🙂
Basically users signup receive an email and click on an activation link. When they click on the activation link it takes them to the activate.php page and all is done.
The problem the link in the email they receive looks like

Hello username, Now here is your login info:


username: computing
password: computing

The next step is to click on this link to activate your account: CLICK HERE

You can see in the last line above that the name of there website is joined to the activate.php page the link is supposed to take them to. So im guessing my error is not so bad and I’m just missing forward slash or something like that.
Anyway I think the problem comes from the code below. I have kept the code short as possible.

<?

// send email
$myname = $contact_name;
$myemail = $contact_email;

$contactname = $signup[fname];
$contactemail = $signup[email];
$message = "Hello ".$signup[fname].",<BR>".
"Get ready to start getting the hits you deserve. Now here is your login info:<BR>     <BR>".
"username: ".$signup[username]."<BR>".
"password: ".$signup[password]."<BR><BR>".
"<B>The next step is to click on this link to activate your account:<a href=".$siteUrl."activate.php?username=".$signup[username].">CLICK HERE</a></b>";
$subject = $title;

$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ".$myname." <".$myemail.">\r\n";
$headers .= "To: ".$contactemail." <".$contactemail.">\r\n";
$headers .= "Reply-To: ".$myname." <".$myemail.">\r\n";
$headers .= "X-Priority: 1\r\n";
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Just My Server";

mail($contactemail, $subject, $message, $headers);
$signup[username] = "";
?>

If anyone can shed some light on this it would be good. Thought I would just mention I am using PHP 5.3
I think myself the problem comes from
href=”.$siteUrl.”activate.php?username=”.$signup[username].”>CLICK HERE”;
$subject = $title;

But I need some valid input 🙂 from some one who knows.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T10:59:37+00:00Added an answer on June 17, 2026 at 10:59 am

    I noticed when you assign your link you used .$siteUrl. have you actually set that variable?

    Also since you would be comming from an outside source (e-mail hosting website) it would work just as fine to “hard-code” your link as your full website address. Ex:

    <a href="http://www.yourwebsite.com/yourdirectories/activate.php?username=".$signup[username].">Click Here</a>
    

    So a value of your message value could be.

    $message = "Hello ".$signup[fname].",<BR>".
    "Get ready to start getting the hits you deserve. Now here is your login info:<BR>     <BR>".
    "username: ".$signup[username]."<BR>".
    "password: ".$signup[password]."<BR><BR>".
    "<B>The next step is to click on this link to activate your account:<a href='http://www.yourwebsite.comactivate.php?username=".$signup[username]."'>CLICK HERE</a></b>";
    

    You shouldn’t have a problem with the double slashes but if you have a problem with those you can use:

    $message = "Hello ".$signup[fname].",<BR>".
    "Get ready to start getting the hits you deserve. Now here is your login info:<BR>     <BR>".
    "username: ".$signup[username]."<BR>".
    "password: ".$signup[password]."<BR><BR>".
    "<B>The next step is to click on this link to activate your account:<a  href='http:/"."/www.yourwebsite.com/activate.php?username=".$signup[username]."'>CLICK HERE</a></b>";
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So basically I have a PHP script that takes all the images from the
I have a very large php maintenance script (basically it recreates thumbnails for an
I have php script that creates a temporary watermark image for users that are
I have a script that, inserts into the database e.g. 20,000 users with email
Here is my dilema, I have a rather large PHP script, that basically reads
I have a simple PHP script. Its used to upload users into the joomla
I have PHP script works without problems, like this : while($row4 = mysql_fetch_array($result4)) {
I have a PHP script running on my LAMP server that requires certain files
I have a php script that inserts data from an Android app into a
I have a php script validation that looks for some special chars and deletes

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.