Code:
else if($action=="mp3")
{
addonline(getuid_sid($sid),"Requesting a Mp3 :P","index.php?action=$action");
echo "<title>$sitename</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"../themes/$theme[0]\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
echo "Welcome plz fill out below form to order ur mp3
";
echo "</p>";
echo "
";
echo "Ur Nick:<input name=\"alias\" maxlength=\"50\"/>
";
echo "Band Name:<input name=\"bandname\" maxlength=\"50\"/>
";
echo "Song Title:<input name=\"songtitle\" maxlength=\"255\"/>
";
echo "<anchor>Submit";
echo "
<go href=\"index.php?action=send&sid=$sid\" method=\"post\">
<postfield name=\"alias\" value=\"$(alias)\"/>
<postfield name=\"bandname\" value=\"$(bandname)\"/>
<postfield name=\"songtitle\" value=\"$(songtitle)\"/>
</go>
";
echo "</anchor>";
echo "
</p>";
echo "<p align=\"center\">";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</body>";
}
else if($action=="send")
{
addonline(getuid_sid($sid),"Mp3 Request Page","");
echo "<title>Request Page</title>";
echo "<p align=\"center\">";
$alias = $_POST["alias"];
$bandname = $_POST["bandname"];
$songtitle = $_POST["songtitle"];
$ownid[0]=20;
$mp3rq = "Someone has made an mp3 Request!,the song title is: ".$songtitle." and the band name is: ".$bandname." the user is: ".$alias." 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\"/>Item added Successfully";
}else{
echo "<img src=\"images/notok.gif\" alt=\"X\"/>Error adding an item";
}
echo "
";
echo "<a href=\"index.php?action=main&sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
echo "</p>";
echo "</card>";
}
its half done but the submit key wont work and i dont do much xhtml coding
any help would be fabulos

Comment