Lost Password?

  #1 (permalink)  
Old 03-22-2007, 10:31 AM
Jaan's Avatar   
Jaan Jaan is offline
Moderator
 
Join Date: Dec 2006
Location: Estonia
Age: 17
Posts: 805
Last Blog:
Wadio Media Layout Com...
Rep Power: 14
Jaan is a jewel in the roughJaan is a jewel in the roughJaan is a jewel in the rough
Send a message via MSN to Jaan
Default Invitation script

This simple scrips allows you to send invitations from your site..

PHP Code:
<?php
// Gather info into variables
$email $_REQUEST['email'];
$message $_REQUEST['message'];
$youremail $_REQUEST['youremail'];
$message2 "YourMessageHere!";

// If $email is not set, $message is empty so as $youremail, then show the form
if(!isset($email) && empty($message) && empty($youremail)){
echo 
"<form action='' method='post'>"
    
."<font>Invite your friends</font><br><br>"
    
."<font><b>Email: </b> <input type='text' name='email' size='30'><br>"
    
."<font><b>Your email: </b><input type='text' name='youremail' size='30'><br>"
    
."<font><b>Message: </b><br><textarea name='message' cols='30' rows='5'></textarea><br>"
    
."<input type='submit' value='Invite'>";
}
// If $youremail is empty then show the error
elseif(empty($youremail)){
die(
"Please enter your email!");
}
// If $message is empty then show the error
elseif(empty($message)){
die(
"Please enter your message!");
//If everything is okay let's send our invitation
}else{
$send mail($email"Invitation"$message."

$message2"
"From: $youremail");
// If we can not send this email let's show the error
if(!$send){
echo 
"Can not send your invitation!";
}
// If this invitation was sent then let's show that "Invitation sent" message
else{
echo 
"Invitation sent!";
}
}

?>
I hope you like it..
Regards Jaan
__________________


Cheap & Professional Web Design | Need help? Send a PM

Last edited by Jaan; 03-22-2007 at 01:29 PM.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 03-22-2007, 12:05 PM
Jordan's Avatar   
Jordan Jordan is offline
Administrator
 
Join Date: Nov 2005
Location: Hendersonville, NC
Age: 26
Posts: 5,978
Last Blog:
SAP, ERP and EDI
Rep Power: 20
Jordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud ofJordan has much to be proud of
Send a message via ICQ to Jordan Send a message via AIM to Jordan Send a message via MSN to Jordan
Default

Nice post, thank you Jaan.
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog
Don't hesitate to ask any questions that you have! Check out our ASCII Calculator!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-22-2007, 01:29 PM
Jaan's Avatar   
Jaan Jaan is offline
Moderator
 
Join Date: Dec 2006
Location: Estonia
Age: 17
Posts: 805
Last Blog:
Wadio Media Layout Com...
Rep Power: 14
Jaan is a jewel in the roughJaan is a jewel in the roughJaan is a jewel in the rough
Send a message via MSN to Jaan
Default

you're welcome m8
__________________


Cheap & Professional Web Design | Need help? Send a PM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
JavaScript:Tutorial, Using an External Script TcM Javascript 7 09-11-2007 07:39 AM
(Script) Copy content to clipboard, how? annannienann Visual Basic Programming 0 06-19-2007 05:20 PM
Packet Loss Perl Script Jordan Tutorials 1 04-29-2007 12:29 PM
Need Help With a Script tfusion PHP Forum 5 04-14-2007 07:35 PM


All times are GMT -5. The time now is 07:23 PM.

Contest Stats

GoogleKeyw ........ 20.00000

Contest Rules

CodeCall Goal

Goal: 100,000 Posts
Complete: 67%

Ads