File: /home/httpd/html/seekya.com/DEAD/beta/friend.php.bak1
<?
include("header.php");
if ($_POST["your_email"]!='' && $_POST["friend_email"]!='')
{
$subject="Check This Out :". $_POST["name"];
$receiver=$_POST["friend_email"];
if (!empty($_POST)) {
$body="Dear ".$_POST["friend_name"].",";
$body.="<br>".$_POST["your_name"];
$body.=" email you following Video from <a href=http://www.SeekYa.com target=_blank>www.SeekYa.com</a>";
$body.="<br><br><font color=blue><a href=\"http://www.SeekYa.com/video.php?video_title=".$_POST["name"]."\" target=_blank>http://www.SeekYa.com/video.php?video_title=".$_POST["name"]."</font></a>(".$_POST["name"].")";
$body.="<br><br>Message For you:<br>";
$body.=$_POST["message"];
$headers = "From: gocuts@SeekYa.com \nContent-Type: text/html";
mail($receiver,$subject,$body,$headers);
$msg="1";
}
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Email video to Friend</title>
<script language="javascript" type="text/javascript">
function validate(frm) {
if (frm.content_file.value == "") {
alert("Please Enter Content File.");
frm.content_file.focus();
return (false);
}
//radio button random
var random = false;
for (counter = 0; counter < frm.random.length; counter++)
{
if (frm.random[counter].checked)
random = true;
}
if (!random)
{
alert("Please select Order.")
return (false);
}
if (frm.frequency.value == "") {
alert("Please Enter Frequency.");
frm.frequency.focus();
return (false);
}
if (isNaN(frm.frequency.value)) {
alert("Please Enter Numeric Frequency.");
frm.frequency.focus();
return (false);
}
return (true);
}
</script>
<style type="text/css">
<!--
.style1 {font-size: 9px}
-->
.textbox {
font-family: Tahoma;
font-size: 11px;
color: #333333;
text-decoration: none;
background-color: #D8DDEA;
height: 17px;
width: auto;
border: 1px solid #8796BE;
}
.textarea {
font-family: Tahoma;
font-size: 11px;
color: #333333;
text-decoration: none;
background-color: #D8DDEA;
width: auto;
border: 1px solid #8796BE;
}
.text {
font-family: Tahoma;
font-size: 11px;
color: #333333;
text-decoration: none;
}
</style>
</head>
<body background="images/bg.gif" leftmargin="0" topmargin="0">
<form name="frmPopup" method="post">
<table width="80%" border="0" align="center" cellpadding="1" cellspacing="1" class=text>
<tr>
<td class="bgWhite"><table width="100%" border="0" bordercolor=blue cellpadding="1" cellspacing="0">
<tr>
<input type=hidden name=image value="<?=$_GET["image"]?>">
<input type=hidden name=name value="<?=$_GET["name"]?>">
<?if ($msg==1)
echo"<strong>Email sent,email to another friend?</strong><br>";?>
You are sending following Video :<br>
<font color=blue>http://www.SeekYa.com/video.php?video_title=<?=PrepareName($_GET["name"])?><br> (<?=$_GET["name"]?>)</font><br>
<td width="30%" class="text">Your Name :</td>
<td width="90%" align=left class="LabelBold"><input type=text size=35 name=your_name class="textbox"></td>
</tr>
<tr>
<td width="30%" class="text">Your Email :</td>
<td width="90%" align=left class="text"><input type=text size=35 name=your_email class="textbox"></td>
</tr>
<tr>
<td width="30%" class="text">Friend Name :</td>
<td width="90%" align=left class="text"><input type=text size=35 name=friend_name class="textbox"></td>
</tr>
<tr>
<td width="30%" class="text">Friend Email :</td>
<td width="90%" align=left class="text"><input type=text size=35 name=friend_email class="textbox"></td>
</tr>
<tr>
<td width="30%" class="text">Personal Message :</td>
<td width="90%" align=left class="text">
<textarea name=message cols=45 rows=8 class=textarea></textarea>
</td>
</tr>
<tr>
<td align="right" colspan=2>
<input name="btnSave" type="submit" id="btnSave" value="Send To Friend">
<input type="reset" name="Reset" value="Reset"></td>
</tr>
</table>
</form>
<?include("footer.php");
?>
<script>
function openWin(argURL, argSize) {
window.open(argURL, "x_win" + (new Date()).getTime(), "resizable=yes,scrollbars=yes," + argSize);
}
</script>