Code:
else if($action=="mp3")
{
addonline(getuid_sid($sid),"Requesting a Mp3 :P","index.php?action=$action");
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "<title>$sitename</title>
<body>
<p align=\"center\">
Welcome $whoid plz fill out below form to order ur mp3
</p>
<div>
<form action=\"index.php?action=send&sid=$sid\" method=\"post\">
Band Name:<input name=\"bandname\" maxlength=\"50\"/>
Song Title:<input name=\"songtitle\" maxlength=\"255\"/>
<input type=\"submit\" value=\"Submit\"/>
</form>
<div>
<p align=\"center\">
<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>Home</a>
</p>
</body>
</html>";
}
else if($action=="send")
{
addonline(getuid_sid($sid),"Mp3 Request Page","");
echo "<title>Request Page</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "<p align=\"center\">";
$bandname = $_POST["bandname"];
$songtitle = $_POST["songtitle"];
$ownid[0]=1;
$mp3rq = "$whoid has made an mp3 Request!,the song title is: ".$songtitle." and the band name is: ".$bandname." Please grant This request as soon as possible.[br/][small][i]p.s: this is an automated pm[/i][/small]";
autopm($mp3rq, $ownid[0]);
$res = mysql_query("INSERT INTO mp3rq SET nick='".($nick)."', user='".($uid)."', songtitle='".($songtitle)."', bandname='".$bandname."'");
if($res)
{
echo "<img src=\"images/ok.gif\" alt=\"O\"/>Mp3 Request Complete Thank You $nick";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error Requestion Mp3 Try Again $nick";
}
echo "
";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo '</body>';
echo '</html>';
}
PHP CODE NEED CODE TAGS THANKS



Comment