View Full Version : [Merged] Php Mail Function
shuheb
02-21-2008, 10:56 PM
On the free account do we get the PHP Mail() function?
Victor01469
02-21-2008, 11:23 PM
Yes, you are allowed to use the PHP Mail() function. You will, however be prevented from sending out batch e-mails, our way to stop spam.
mrquarter
02-22-2008, 12:24 AM
Just a warning: If you try to get around the preventions, your account will be banned instantly.
Just a friendly warning ;)
shuheb
02-22-2008, 08:17 PM
Hi am having trouble with my PHP Mail script can anyone help?
What's the problem... ? o_O
Also you can't mass email btw.
shuheb
02-22-2008, 08:59 PM
What's the problem... ? o_O
Also you can't mass email btw.
I have got a PHP Mail script everything it just doesnt send the mail when someone uses the form...:S
Victor01469
02-22-2008, 09:05 PM
For better assistance, please copy/paste the script into your next reply.
shuheb
02-22-2008, 09:15 PM
<?PHP
if($_REQUEST['continue']=="true")
{
$ip=$_SERVER['REMOTE_ADDR'];
$requestcookie="request";
$userrequest = $_COOKIE[$requestcookie];
if($userrequest != $ip)
{
$to="shuheb@blueyonder.co.uk";
$subject="Song Request Submitted..";
$description="Name: ".$_REQUEST['name']."<br>Request: ".$_REQUEST['request'];
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Radio Bounce <admin@ipuncovered.com>\r\n";
$res=@mail($to,$subject,$description,$headers);
setcookie($requestcookie, $ip, time()+3600*24, "/");
}
else
{
$msg = "Sorry - But you can submit a request once in 24 hours..";
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Radio Bounce :: Beta Live On Air!</title>
<style type="text/css">
<!--
.style2 {
font-weight: bold;
color: #CCCCCC;
font-family: "Franklin Gothic Medium";
font-size: 25px;
}
.style5 {font-size: 14px}
.style6 {font-size: 25px; }
a:link {
color: #CCCCCC;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #CCCCCC;
}
a:hover {
text-decoration: none;
color: #CCCCCC;
}
a:active {
text-decoration: none;
color: #CCCCCC;
}
body {
background-color: #E6E6E6;
}
.style7 {font-size: 16px}
.combo {
BORDER-RIGHT: #fff 0px solid; PADDING-RIGHT: 10px; BORDER-TOP: #fff 0px solid; PADDING-LEFT: 10px; FONT-SIZE: 9px; FILTER: alpha(opacity=60); BACKGROUND-IMAGE: url(images/bg_request.gif); PADDING-BOTTOM: 0px; BORDER-LEFT: #fff 0px solid; WIDTH: 276px; COLOR: #fff; PADDING-TOP: 0px; BORDER-BOTTOM: #fff 0px solid; HEIGHT: 20px; TEXT-ALIGN: left; opacity: 0.5
}
.button {
BORDER-RIGHT: medium none; PADDING-RIGHT: 8px; BORDER-TOP: medium none; PADDING-LEFT: 8px; FONT-SIZE: 9px; BACKGROUND-IMAGE: url(images/bg_request.gif); PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 276px; COLOR: #fff; PADDING-TOP: 0px; BORDER-BOTTOM: medium none; HEIGHT: 20px; TEXT-ALIGN: left
}
-->
</style></head>
<body>
<table width="813" height="896" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th width="814" height="176" align="center" valign="top" scope="col"><img src="images/banner_left.gif" alt="Radio Bounce" width="400" height="176" /><img src="images/banner_right.gif" alt="Radio Bounce" width="413" height="176" /></th>
</tr>
<tr>
<td height="43" align="center" valign="top" class="style2"><div align="center"><img src="images/nav.gif" alt="Navigation" width="813" height="43" border="0" usemap="#Map" /></div></td>
</tr>
<tr>
<td width="813" height="637" align="center" valign="top" background="images/main_1.gif" class="style2"><br />Welcome to RADIO BOUNCE!
</p>
<p align="center" class="style5">Welcoming you to the all new mixed format radio station Radio Bounce! Here we broadcast anything <br />
and everything. At the moment the site is undergoing beta stages and the listeners request form is<br />
is not yet up, but we hope to get this up in the next few days. For now though just keep listening and <br />
most of all enjoy!</p>
<p align="center" class="style5">LISTEN NOW LIVE! </p>
<p align="center" class="style5"> <object id="MediaPlayer1" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab# Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="275" height="46">
<param name="fileName" value="http://radiobounce.ipuncovered.com/ss.asx" />
<param name="animationatStart" value="true" />
<param name="transparentatStart" value="true" />
<param name="autoStart" value="true" />
<param name="showControls" value="true" />
<param name="Volume" value="-400" />
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://radiobounce.ipuncovered.com/ss.asx" name="MediaPlayer1" width=400 height=50 autostart=1 showcontrols=1 volume=-400></embed>
</object>
<br /><a href="popupradio.php" target="_blank">Launch RADIO BOUNCE externally
</a><p>
<dt>Add Radio Bounce to your site<br />
<span class="style5">You just need to follow <strong>3</strong> simple steps in order to get the radio running on your website!</span><br />
<span class="style5"> <a>Click</a> > <a>Copy</a> > <a>Paste</a> it into your HTML Editor.</span><br />
<textarea rows="4" cols="89" wrap="virtual" onFocus="this.select()">
<object id="MediaPlayer1" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab# Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="275" height="46">
<param name="fileName" value="http://radiobounce.ipuncovered.com/ss.asx" />
<param name="animationatStart" value="true" />
<param name="transparentatStart" value="true" />
<param name="autoStart" value="true" />
<param name="showControls" value="true" />
<param name="Volume" value="-400" />
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://radiobounce.ipuncovered.com/ss.asx" name="MediaPlayer1" width=400 height=50 autostart=1 showcontrols=1 volume=-400></embed>
</object>
</textarea>
</p>
</dt>
<script language="javascript">
function validate()
{
if(document.theform.name.value=="")
{
alert("Enter your name please");
document.theform.name.focus();
return false;
}
else if(document.theform.request.value=="")
{
alert("Enter your request please");
document.theform.request.focus();
return false;
}
return true;
}
</script>
<p align="center">
<form name="theform" method="post" action="index.php" onsubmit="return validate();">
<p align="center"><img src="images/image_sendmessage.gif" alt="Send a Message to the Current Presenter"><br>
<INPUT class=combo
onblur="if (this.value == '') { this.value = 'Enter Your Name'; }"
onfocus="if (this.value == 'Enter Your Name') { this.value = ''; }"
onclick="if (this.value == 'Enter Your Name') { this.value = ''; }"
type="Enter Your Name" value="Enter Your Name" name="name">
<BR>
<INPUT class=combo
onblur="if (this.value == '') { this.value = 'Enter Your Request'; }"
onfocus="if (this.value == 'Enter Your Request') { this.value = ''; }"
onclick="if (this.value == 'Enter Your Request') { this.value = ''; }"
type="Enter Your Request" value="Enter Your Request" name="request">
<BR>
<input class=button type=submit value=Submit name=submit />
<input type="hidden" name="continue" value="true">
</p>
</form>
</p>
<p align="center" class="style6">SITE NEWS & UPDATES
<p align="center" class="style5">Site undergoing beta stages <br />
Listeners request form to be added<br /> Any questions or suggestions? Please <a href="mailto:shuheb@hotmail.com">click here</a> to email us.</p> </td>
</tr>
<tr>
<td height="40"><img src="images/footer.gif" alt="Radio Bounce" width="813" height="39" border="0" /></td>
</tr>
</table>
<map name="Map" id="Map"><area shape="rect" coords="175,10,225,31" href="index.php" />
</map></body>
</html>
and dont worry admins and mods im running the radio streaming from a seperate host....lol
shuheb
02-23-2008, 10:50 PM
Hi i am having some problem with my PHP Mail script can anyone help...its not sending the mail out the script is below...<?PHP
if($_REQUEST['continue']=="true")
{
$ip=$_SERVER['REMOTE_ADDR'];
$requestcookie="request";
$userrequest = $_COOKIE[$requestcookie];
if($userrequest != $ip)
{
$to="shuheb@blueyonder.co.uk";
$subject="Song Request Submitted..";
$description="Name: ".$_REQUEST['name']."<br>Request: ".$_REQUEST['request'];
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Radio Bounce <admin@ipuncovered.com>\r\n";
$res=@mail($to,$subject,$description,$headers);
setcookie($requestcookie, $ip, time()+3600*24, "/");
}
else
{
$msg = "Sorry - But you can submit a request once in 24 hours..";
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Radio Bounce :: Beta Live On Air!</title>
<style type="text/css">
<!--
.style2 {
font-weight: bold;
color: #CCCCCC;
font-family: "Franklin Gothic Medium";
font-size: 25px;
}
.style5 {font-size: 14px}
.style6 {font-size: 25px; }
a:link {
color: #CCCCCC;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #CCCCCC;
}
a:hover {
text-decoration: none;
color: #CCCCCC;
}
a:active {
text-decoration: none;
color: #CCCCCC;
}
body {
background-color: #E6E6E6;
}
.style7 {font-size: 16px}
.combo {
BORDER-RIGHT: #fff 0px solid; PADDING-RIGHT: 10px; BORDER-TOP: #fff 0px solid; PADDING-LEFT: 10px; FONT-SIZE: 9px; FILTER: alpha(opacity=60); BACKGROUND-IMAGE: url(images/bg_request.gif); PADDING-BOTTOM: 0px; BORDER-LEFT: #fff 0px solid; WIDTH: 276px; COLOR: #fff; PADDING-TOP: 0px; BORDER-BOTTOM: #fff 0px solid; HEIGHT: 20px; TEXT-ALIGN: left; opacity: 0.5
}
.button {
BORDER-RIGHT: medium none; PADDING-RIGHT: 8px; BORDER-TOP: medium none; PADDING-LEFT: 8px; FONT-SIZE: 9px; BACKGROUND-IMAGE: url(images/bg_request.gif); PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 276px; COLOR: #fff; PADDING-TOP: 0px; BORDER-BOTTOM: medium none; HEIGHT: 20px; TEXT-ALIGN: left
}
-->
</style></head>
<body>
<table width="813" height="896" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th width="814" height="176" align="center" valign="top" scope="col"><img src="images/banner_left.gif" alt="Radio Bounce" width="400" height="176" /><img src="images/banner_right.gif" alt="Radio Bounce" width="413" height="176" /></th>
</tr>
<tr>
<td height="43" align="center" valign="top" class="style2"><div align="center"><img src="images/nav.gif" alt="Navigation" width="813" height="43" border="0" usemap="#Map" /></div></td>
</tr>
<tr>
<td width="813" height="637" align="center" valign="top" background="images/main_1.gif" class="style2"><br />Welcome to RADIO BOUNCE!
</p>
<p align="center" class="style5">Welcoming you to the all new mixed format radio station Radio Bounce! Here we broadcast anything <br />
and everything. At the moment the site is undergoing beta stages and the listeners request form is<br />
is not yet up, but we hope to get this up in the next few days. For now though just keep listening and <br />
most of all enjoy!</p>
<p align="center" class="style5">LISTEN NOW LIVE! </p>
<p align="center" class="style5"> <object id="MediaPlayer1" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab# Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="275" height="46">
<param name="fileName" value="http://radiobounce.ipuncovered.com/ss.asx" />
<param name="animationatStart" value="true" />
<param name="transparentatStart" value="true" />
<param name="autoStart" value="true" />
<param name="showControls" value="true" />
<param name="Volume" value="-400" />
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://radiobounce.ipuncovered.com/ss.asx" name="MediaPlayer1" width=400 height=50 autostart=1 showcontrols=1 volume=-400></embed>
</object>
<br /><a href="popupradio.php" target="_blank">Launch RADIO BOUNCE externally
</a><p>
<dt>Add Radio Bounce to your site<br />
<span class="style5">You just need to follow <strong>3</strong> simple steps in order to get the radio running on your website!</span><br />
<span class="style5"> <a>Click</a> > <a>Copy</a> > <a>Paste</a> it into your HTML Editor.</span><br />
<textarea rows="4" cols="89" wrap="virtual" onFocus="this.select()">
<object id="MediaPlayer1" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab# Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="275" height="46">
<param name="fileName" value="http://radiobounce.ipuncovered.com/ss.asx" />
<param name="animationatStart" value="true" />
<param name="transparentatStart" value="true" />
<param name="autoStart" value="true" />
<param name="showControls" value="true" />
<param name="Volume" value="-400" />
<embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" src="http://radiobounce.ipuncovered.com/ss.asx" name="MediaPlayer1" width=400 height=50 autostart=1 showcontrols=1 volume=-400></embed>
</object>
</textarea>
</p>
</dt>
<script language="javascript">
function validate()
{
if(document.theform.name.value=="")
{
alert("Enter your name please");
document.theform.name.focus();
return false;
}
else if(document.theform.request.value=="")
{
alert("Enter your request please");
document.theform.request.focus();
return false;
}
return true;
}
</script>
<p align="center">
<form name="theform" method="post" action="index.php" onsubmit="return validate();">
<p align="center"><img src="images/image_sendmessage.gif" alt="Send a Message to the Current Presenter"><br>
<INPUT class=combo
onblur="if (this.value == '') { this.value = 'Enter Your Name'; }"
onfocus="if (this.value == 'Enter Your Name') { this.value = ''; }"
onclick="if (this.value == 'Enter Your Name') { this.value = ''; }"
type="Enter Your Name" value="Enter Your Name" name="name">
<BR>
<INPUT class=combo
onblur="if (this.value == '') { this.value = 'Enter Your Request'; }"
onfocus="if (this.value == 'Enter Your Request') { this.value = ''; }"
onclick="if (this.value == 'Enter Your Request') { this.value = ''; }"
type="Enter Your Request" value="Enter Your Request" name="request">
<BR>
<input class=button type=submit value=Submit name=submit />
<input type="hidden" name="continue" value="true">
</p>
</form>
</p>
<p align="center" class="style6">SITE NEWS & UPDATES
<p align="center" class="style5">Site undergoing beta stages <br />
Listeners request form to be added<br /> Any questions or suggestions? Please <a href="mailto:shuheb@hotmail.com">click here</a> to email us.</p> </td>
</tr>
<tr>
<td height="40"><img src="images/footer.gif" alt="Radio Bounce" width="813" height="39" border="0" /></td>
</tr>
</table>
<map name="Map" id="Map"><area shape="rect" coords="175,10,225,31" href="index.php" />
</map></body>
</html>and dont worry admins and mods im running the radio streaming from a seperate host....lol
mrquarter
02-24-2008, 12:02 AM
That looks correct. I will ask one of my friends about this script.
UnlimitedMB
02-24-2008, 01:11 AM
Some problems but im not sure if these would actually cause a failure, unless the receiving end thinks it looks like spam.
You end header lines with \n not \r\n
If the name in your from line has spaces you must quote the name.
You dont put a line break after the last header
The proper way:
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: \"Radio Bounce\" <admin@ipuncovered.com>";
Please try send to a different address such as yahoo or gmail and turn off spam filters.
shuheb
02-25-2008, 09:42 AM
Its doesnt seem to send the email...:S
UnlimitedMB
02-25-2008, 02:47 PM
I get constant emails from the server about various things.
The mail function is definately working, if there is a problem it is with your script.
shuheb
03-10-2008, 04:22 PM
Hi i have this code which allows people to fill in the form and when they press submit, it should send to my email but when i try to load the page it always says i got an error on the last line. Please help. The code is below:
<?PHP
if($_REQUEST['continue']=="true")
$to="shuheb@live.com";
$subject="DJ/Presenter Application Received!";
$description="Name: ".$_REQUEST['name']."<br>Email Address: ".$_REQUEST['email']."<br>D.O.B: ".$_REQUEST['dob']."<br>Presented On Air Before: ".$_REQUEST['presented']."<br>Why We Should Choose Candidate: ".$_REQUEST['choice']."<br>What Time of Day is Best For Candidate: ".$_REQUEST['time']."<br>Got A Microphone: ".$_REQUEST['mic'];
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Radio Bounce <donotreply@radiobounce.co.nr>\r\n";
$res=@mail($to,$subject,$description,$headers);
?>
<html>
<style type="text/css">
<!--
body {
background-color: #E6E6E6;
}
a:link {
color: #CCCCCC;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #CCCCCC;
}
a:hover {
text-decoration: none;
color: #CCCCCC;
}
a:active {
text-decoration: none;
color: #CCCCCC;
}
.style16 { font-family: "Franklin Gothic Medium";
font-weight: bold;
font-size: 20px;
color: #cccccc;
}
.combo {
BORDER-RIGHT: #fff 0px solid; PADDING-RIGHT: 10px; BORDER-TOP: #fff 0px solid; PADDING-LEFT: 10px; FONT-SIZE: 9px; FILTER: alpha(opacity=60); BACKGROUND-IMAGE: url(images/bg_request.gif); PADDING-BOTTOM: 0px; BORDER-LEFT: #fff 0px solid; WIDTH: 276px; COLOR: #fff; PADDING-TOP: 0px; BORDER-BOTTOM: #fff 0px solid; HEIGHT: 20px; TEXT-ALIGN: left; opacity: 0.5
}
.button {
BORDER-RIGHT: medium none; PADDING-RIGHT: 8px; BORDER-TOP: medium none; PADDING-LEFT: 8px; FONT-SIZE: 9px; BACKGROUND-IMAGE: url(images/bg_request.gif); PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 276px; COLOR: #fff; PADDING-TOP: 0px; BORDER-BOTTOM: medium none; HEIGHT: 20px; TEXT-ALIGN: left
}
.style17 {
font-family: "Franklin Gothic Medium";
font-size: 35px;
color: #CCCCCC;
}
.style18 {font-size: 25px}
.style19 {
color: #CCCCCC;
font-weight: bold;
font-family: "Franklin Gothic Medium";
font-size: 25px;
}
.style20 {font-size: 30px}
-->
</style></head>
<body>
<table width="812" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><img src="images/banner_left.gif" alt="Radio Bounce" width="406" height="175" /><img src="images/banner_right.gif" alt="Radio Bounce" width="406" height="175" /></th>
</tr>
<tr>
<td height="43" background="images/nav2.gif"><div align="center"><span class="style16"><a href="index.php">Home</a> | <a href="http://radiobounce.ulmb.com/forum" target="_blank">Community </a>| <a href="aboutus.php">About Us </a> |<a href="opportunities.php">Opportunities</a> | FAQ | Contact</span></div></td>
</tr>
<tr>
<td height="632" align="center" valign="top" background="images/main_1.gif"><p><strong><span class="style17">Want To Become A DJ or A Presenter?<br />
<span class="style18">Be A Part of The Radio Bounce Team</span></span></strong><strong><span class="style17"><br />
<span class="style18">Fill in the opportunities form below and a Radio Bounce team member will get back to you as soon as possible. </span></span></strong></p>
<table width="27%" border="1" bordercolor="#FFFFFF">
<tr>
<th height="263" scope="col">
<title>Opportunities</title>
<script language="javascript">
function validate()
{
if(document.theform.name.value=="")
{
alert("Enter your name please");
document.theform.name.focus();
return false;
}
else if(document.theform.email.value=="")
{
alert("Enter your email address please");
document.theform.email.focus();
return false;
}
else if(document.theform.dob.value=="")
{
alert("Enter your date of birth please");
document.theform.dob.focus();
return false;
}
else if(document.theform.presented.value=="")
{
alert("Please enter wheather you have presented on air before");
document.theform.presented.focus();
return false;
}
else if(document.theform.choice.value=="")
{
alert("Please enter why you should be chosen");
document.theform.choice.focus();
return false;
}
else if(document.theform.time.value=="")
{
alert("Please enter a time of day that suits you");
document.theform.time.focus();
return false;
}
else if(document.theform.mic.value=="")
{
alert("Please say if you have a microphone");
document.theform.mic.focus();
return false;
}
return true;
}
</script><form name="theform" method="post" action="opportunities.php" onSubmit="return validate();">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" align="center">
<tr><Td><img src="images/image_sendmessage.gif" alt="Send a Message to the Current Presenter"></Td></tr>
<tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'Your Name'; }"
onfocus="if (this.value == 'Your Name') { this.value = ''; }"
onclick="if (this.value == 'Your Name') { this.value = ''; }"
type="Your Name" value="Your Name" name="name" style="width:255px;"></td></tr>
<tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'Your Email Address'; }"
onfocus="if (this.value == 'Your Email Address') { this.value = ''; }"
onclick="if (this.value == 'Your Email Address') { this.value = ''; }"
type="Your Email Address" value="Your Email Address" name="email" style="width:255px;"></td></tr>
<tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'Enter Your Date of Birth'; }"
onfocus="if (this.value == 'Enter Your Date of Birth') { this.value = ''; }"
onclick="if (this.value == 'Enter Your Date of Birth') { this.value = ''; }"
type="Enter Your Date of Birth" value="Enter Your Date of Birth" name="dob" style="width:255px;"></td></tr>
<tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'Presented On Air Before?'; }"
onfocus="if (this.value == 'Presented On Air Before?') { this.value = ''; }"
onclick="if (this.value == 'Presented On Air Before?') { this.value = ''; }"
type="Presented On Air Before?" value="Presented On Air Before?" name="presented" style="width:255px;"></td></tr>
<tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'Why We Should Choose You'; }"
onfocus="if (this.value == 'Why We Should Choose You') { this.value = ''; }"
onclick="if (this.value == 'Why We Should Choose You') { this.value = ''; }"
type="Why We Should Choose You" value="Why We Should Choose You" name="choice" style="width:255px;"></td></tr>
<tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'What Time of Day is Best For You?'; }"
onfocus="if (this.value == 'What Time of Day is Best For You?') { this.value = ''; }"
onclick="if (this.value == 'What Time of Day is Best For You?') { this.value = ''; }"
type="What Time of Day is Best For You?" value="What Time of Day is Best For You?" name="time" style="width:255px;"></td></tr>
<Tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'Got A Microphone?'; }"
onfocus="if (this.value == 'Got A Microphone?') { this.value = ''; }"
onclick="if (this.value == 'Got A Microphone?') { this.value = ''; }"
type="Got A Microphone?" value="Got A Microphone?" name="mic" style="width:255px;"></td></Tr>
<tr><td valign="top"><INPUT class=button type=submit value=Submit name=submit></td></tr>
</table>
<input type="hidden" name="continue" value="true">
</div>
</form> </th>
</tr>
</table>
<p class="style19">If you don't receive a reply witin 7 days of application please accept our apologies as that means you have not been accepted.<br />
<br />
<span class="style20">GOOD LUCK!</span></p>
</td>
</tr>
<tr>
<td><img src="images/footer.gif" alt="Footer" width="812" height="43" /></td>
</tr>
</table>
</body>
</html>
shuheb
03-10-2008, 04:29 PM
Hi i have a PHP Mail script here but it doesnt seem to load when i try loading it. It says there is always a mistake on the last line. The code is below please help.
<?PHP
if($_REQUEST['continue']=="true")
$to="shuheb@live.com";
$subject="DJ/Presenter Application Received!";
$description="Name: ".$_REQUEST['name']."<br>Email Address: ".$_REQUEST['email']."<br>D.O.B: ".$_REQUEST['dob']."<br>Presented On Air Before: ".$_REQUEST['presented']."<br>Why We Should Choose Candidate: ".$_REQUEST['choice']."<br>What Time of Day is Best For Candidate: ".$_REQUEST['time']."<br>Got A Microphone: ".$_REQUEST['mic'];
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Radio Bounce <donotreply@radiobounce.co.nr>\r\n";
$res=@mail($to,$subject,$description,$headers);
?>
<html>
<style type="text/css">
<!--
body {
background-color: #E6E6E6;
}
a:link {
color: #CCCCCC;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #CCCCCC;
}
a:hover {
text-decoration: none;
color: #CCCCCC;
}
a:active {
text-decoration: none;
color: #CCCCCC;
}
.style16 { font-family: "Franklin Gothic Medium";
font-weight: bold;
font-size: 20px;
color: #cccccc;
}
.combo {
BORDER-RIGHT: #fff 0px solid; PADDING-RIGHT: 10px; BORDER-TOP: #fff 0px solid; PADDING-LEFT: 10px; FONT-SIZE: 9px; FILTER: alpha(opacity=60); BACKGROUND-IMAGE: url(images/bg_request.gif); PADDING-BOTTOM: 0px; BORDER-LEFT: #fff 0px solid; WIDTH: 276px; COLOR: #fff; PADDING-TOP: 0px; BORDER-BOTTOM: #fff 0px solid; HEIGHT: 20px; TEXT-ALIGN: left; opacity: 0.5
}
.button {
BORDER-RIGHT: medium none; PADDING-RIGHT: 8px; BORDER-TOP: medium none; PADDING-LEFT: 8px; FONT-SIZE: 9px; BACKGROUND-IMAGE: url(images/bg_request.gif); PADDING-BOTTOM: 0px; BORDER-LEFT: medium none; WIDTH: 276px; COLOR: #fff; PADDING-TOP: 0px; BORDER-BOTTOM: medium none; HEIGHT: 20px; TEXT-ALIGN: left
}
.style17 {
font-family: "Franklin Gothic Medium";
font-size: 35px;
color: #CCCCCC;
}
.style18 {font-size: 25px}
.style19 {
color: #CCCCCC;
font-weight: bold;
font-family: "Franklin Gothic Medium";
font-size: 25px;
}
.style20 {font-size: 30px}
-->
</style></head>
<body>
<table width="812" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<th scope="col"><img src="images/banner_left.gif" alt="Radio Bounce" width="406" height="175" /><img src="images/banner_right.gif" alt="Radio Bounce" width="406" height="175" /></th>
</tr>
<tr>
<td height="43" background="images/nav2.gif"><div align="center"><span class="style16"><a href="index.php">Home</a> | <a href="http://radiobounce.ulmb.com/forum" target="_blank">Community </a>| <a href="aboutus.php">About Us </a> |<a href="opportunities.php">Opportunities</a> | FAQ | Contact</span></div></td>
</tr>
<tr>
<td height="632" align="center" valign="top" background="images/main_1.gif"><p><strong><span class="style17">Want To Become A DJ or A Presenter?<br />
<span class="style18">Be A Part of The Radio Bounce Team</span></span></strong><strong><span class="style17"><br />
<span class="style18">Fill in the opportunities form below and a Radio Bounce team member will get back to you as soon as possible. </span></span></strong></p>
<table width="27%" border="1" bordercolor="#FFFFFF">
<tr>
<th height="263" scope="col">
<title>Opportunities</title>
<script language="javascript">
function validate()
{
if(document.theform.name.value=="")
{
alert("Enter your name please");
document.theform.name.focus();
return false;
}
else if(document.theform.email.value=="")
{
alert("Enter your email address please");
document.theform.email.focus();
return false;
}
else if(document.theform.dob.value=="")
{
alert("Enter your date of birth please");
document.theform.dob.focus();
return false;
}
else if(document.theform.presented.value=="")
{
alert("Please enter wheather you have presented on air before");
document.theform.presented.focus();
return false;
}
else if(document.theform.choice.value=="")
{
alert("Please enter why you should be chosen");
document.theform.choice.focus();
return false;
}
else if(document.theform.time.value=="")
{
alert("Please enter a time of day that suits you");
document.theform.time.focus();
return false;
}
else if(document.theform.mic.value=="")
{
alert("Please say if you have a microphone");
document.theform.mic.focus();
return false;
}
return true;
}
</script><form name="theform" method="post" action="opportunities.php" onSubmit="return validate();">
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" align="center">
<tr><Td><img src="images/image_sendmessage.gif" alt="Send a Message to the Current Presenter"></Td></tr>
<tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'Your Name'; }"
onfocus="if (this.value == 'Your Name') { this.value = ''; }"
onclick="if (this.value == 'Your Name') { this.value = ''; }"
type="Your Name" value="Your Name" name="name" style="width:255px;"></td></tr>
<tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'Your Email Address'; }"
onfocus="if (this.value == 'Your Email Address') { this.value = ''; }"
onclick="if (this.value == 'Your Email Address') { this.value = ''; }"
type="Your Email Address" value="Your Email Address" name="email" style="width:255px;"></td></tr>
<tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'Enter Your Date of Birth'; }"
onfocus="if (this.value == 'Enter Your Date of Birth') { this.value = ''; }"
onclick="if (this.value == 'Enter Your Date of Birth') { this.value = ''; }"
type="Enter Your Date of Birth" value="Enter Your Date of Birth" name="dob" style="width:255px;"></td></tr>
<tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'Presented On Air Before?'; }"
onfocus="if (this.value == 'Presented On Air Before?') { this.value = ''; }"
onclick="if (this.value == 'Presented On Air Before?') { this.value = ''; }"
type="Presented On Air Before?" value="Presented On Air Before?" name="presented" style="width:255px;"></td></tr>
<tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'Why We Should Choose You'; }"
onfocus="if (this.value == 'Why We Should Choose You') { this.value = ''; }"
onclick="if (this.value == 'Why We Should Choose You') { this.value = ''; }"
type="Why We Should Choose You" value="Why We Should Choose You" name="choice" style="width:255px;"></td></tr>
<tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'What Time of Day is Best For You?'; }"
onfocus="if (this.value == 'What Time of Day is Best For You?') { this.value = ''; }"
onclick="if (this.value == 'What Time of Day is Best For You?') { this.value = ''; }"
type="What Time of Day is Best For You?" value="What Time of Day is Best For You?" name="time" style="width:255px;"></td></tr>
<Tr><td><INPUT class=combo
onblur="if (this.value == '') { this.value = 'Got A Microphone?'; }"
onfocus="if (this.value == 'Got A Microphone?') { this.value = ''; }"
onclick="if (this.value == 'Got A Microphone?') { this.value = ''; }"
type="Got A Microphone?" value="Got A Microphone?" name="mic" style="width:255px;"></td></Tr>
<tr><td valign="top"><INPUT class=button type=submit value=Submit name=submit></td></tr>
</table>
<input type="hidden" name="continue" value="true">
</div>
</form> </th>
</tr>
</table>
<p class="style19">If you don't receive a reply witin 7 days of application please accept our apologies as that means you have not been accepted.<br />
<br />
<span class="style20">GOOD LUCK!</span></p>
</td>
</tr>
<tr>
<td><img src="images/footer.gif" alt="Footer" width="812" height="43" /></td>
</tr>
</table>
</body>
</html>
Try and keep things to one thread... >_>
Victor01469
03-10-2008, 08:03 PM
Because this is the 4th thread I have had to merge for shuheb, all regarding the same problem, I am now issueing a temporary ban on the member.
Due to the member's ignorance of the warnings that have been issued, I am also closing this thread, preventing the user from receiving any further support regarding this topic.
Once the ban has cleared, the user will have the right to receive technical support on any topics not related to this.
If the user feels this decision is unjust, he/she will need to contact me by PM for further discussion.
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.