Jump to content

Recommended Posts

Okay, people I'm running a website on wordpress Version 2.7.1

 

Now, I have a friend who's somewhat okay with code she wrote me an invite code for my site

 

<?php

 

/* This is a script written by Morgan Westfield (morgan@tehgeekgirl.com) for youarethescene.net. Please keep this comment intact. Visit http://www.tehgeekgirl.com. */

 

// Declare our variable

$email = $_POST['email'];

 

// Run the functions

sendemail();

print_html();

 

 

// The actual functions

function sendemail() // Sends the email to the person we've invited

{

 

global $email;

 

$to="$email";

$from="donotreply@youarethescene.net";

$headers = "From: $from";

$subject = "You've Been Invited to YouAreTheScene!";

$message = "Greetings,\n\nOne of your friends has invited you to YOUARETHESCENE.NET!\n\nIf you aren't interested, then just discard this email.\n\nThanks!\n- You Are The Scene Administrators";

mail($to,$subject,$message,$headers);

 

}

 

function print_html() // Prints a nice message to the inviter!

{

 

global $email;

 

print("<html><head><title>Invite a Friend!</title></head><div style='border:solid 5px #dae55a; background-color: #f3fb9d; color: black; font-family: Verdana, sans-serif; font-size: 12px; width: 450px; padding: 10px; margin: 0 auto; text-align: center;'>Success! We've sent an invite email to $email.<br /><br /><a href=\"http://www.youarethescene.net\">Click here</a> to return home. </div></body></html>");

}

 

?>

 

What happens is On my site

if you see the picture

http://i41.tinypic.com/wjf68k.jpg

You will see a big red box

 

I got two boxes where you can

User Name

Password

and

Email

 

After I put in the info it goes to another page stating

 

 

"Success! We've sent an invite email to personsemail@email.com"

 

Click here to return home.

 

you can return to the main page after you send the email, thats fine

 

but when someone gets an email for an invite it reads

 

"Greetings,

 

One of your friends has invited you to YOUARETHESCENE.NET!

 

If you aren't interested, then just discard this email.

 

Thanks!

- You Are The Scene Administrators"

 

Now, what I need is to have it send them a key to sign up so when they get the email it can read the same thing but i'd like it to read "please click the link to sign Up" and it would be

www.youarethescene.net/invite/key

cause i remember on some other site it had like

 

invite/838939043w0092 some long ass key you click it and you can enter in your own user name and password, and email address

 

anyone know what i can do, I don't know php

 

thanks

Dave

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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