Location: PHPKode > projects > MyOWNSpace > MyOWNspace_v8.2/www/invite.php
<? include "header.php";
?>
<script language="javascript">
var i = 1;
function changeIt()
{
i++;
my_div.innerHTML = my_div.innerHTML + "<br><label>MyOwnFriend Name(" +i + "):</label><input type='text' name='myfriend" + i + "'>&nbsp;<label>MyOwnFriend Email:</label><input type='text' name='friendemail" +i +"'>"

}
</script>

<?


if(isset($_POST['myfriend1'])){
$i=1;
echo '<center><h1>Sending MyOWNinvitation..</H1></center>';
while(isset($_POST['myfriend'.$i.''])){
$login=$_POST['myfriend'.$i.''];    //echo $login.'#';
$email=$_POST['friendemail'.$i.'']; //echo $email.'#';
$i++;

///////EDIT EMAiL
$sujet='Your Own Invitation to MyOwnSpace';
$code='';
//reset($myown_user);
//$login= $myown_user[$key]['login'];
//$email= $myown_user[$key]['email'];
$headers = 'From: "MyOwnSpace"<hide@address.com>' . "\r\n" .
     'Reply-To: <hide@address.com' . "\r\n" .
     'X-Mailer: PHP/' . phpversion();
$code='Hello '.$login.' !

A member of MyOwnSpace is inviting you to join!';

if($_POST['text']!=""&&$_POST['my']!=""){ 
$code.='

<!--Personal message from:'.$_POST['my'].'<'.$_POST['myemail'].'> -->
<!--'.htmlspecialchars ($_POST['text']).'-->';
}


$code.='

Join MyOwnSpace and you will instantly be connected to your OwnFriends™!

Click Here to Join:
< http://myownspace.fr/signup.php>

What is MyOwnSpace?
======================
MyOwnSpace is an underground community that lets you meet your OwnFriends™\' friends.

 » Create your Own Custom Profile!
 » Play your Own Online Music!
 » Send Mail!
 » Write Blogs & Comments!
 » Manage Your OwnAds™
 » Choose Your OwnFriends™ (soon)
 » It\'s FREE!


Who Uses MyOwnSpace?
=======================
MyOwnSpace is for everyone:

 * Families who want to be Online!
 * Bands that want their own music to be downloaded!
 * Friends who want to keep in touch!
 * Homeless interested in networking!
 * Anyone looking for underground hosting on the web!

What Do I Do?
======================
1. Click the Link In This E-mail!
2. Create Your Own Profile!
3. Start Communicating with Your OwnFriends™ and Your OwnFriends™\'s Friends!
4. Invite Your OwnFriends™ to Join!

Click Here to Learn More:
<http://myownspace.fr/>


You got this email because someone who knows you
sent you an invitation to join them on MyOwnSpace.fr

[Disclaimer:MyOwnSpace.fr is BETA version, we will soon improve new features to MyOwnSpace!]

<!-- __myveryownspace*gmail%com__ -->';
mail($email, $sujet, $code,$headers);
echo "<li>sent mail to ".$login.": <".$email."> </li>";
}
echo 'done.<br>[<a href="/">Back</a> to MyOWNspace]';
}
else
{
echo'<br><br><br>
<fieldset>
<legend><a class="big_title" >Invite YourOwnFriends to MyOWNspace</a></font></legend>
<form name="invitation" action="myowninvitation.php" method="POST"><br><br>
<label>MyOwn Name:</label><input type="text" name="my">&nbsp;<label>MyOwn Email:</label><input type="text" name="myemail">
<hr>
<label>MyOwnFriend Name(1):</label><input type="text" name="myfriend1">&nbsp;<label>MyOwnFriend Email:</label><input type="text" name="friendemail1">
<br>
<input type="button" value="MORE Friends!" onClick="changeIt()"><br>
<legend id="my_div"></legend>
<hr><label>Personal Message:(optional)</label><br><textarea style="color: black;" name="text" cols="30" rows="4"></textarea><br>
<input type="submit" value="SEND MyOWNinvitation!">
</form></fieldset>';


}
include "footer.php";
?>
Return current item: MyOWNSpace