this is the coding i have but it dnt seem to work at all............
on user profile
is there any fault there?
on user profile
PHP Code:
//------------------//
$data = mysql_fetch_assoc(mysql_query("select * from pg_user where login ='$puser'"));
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"pstyle/".$data['theme']."\">";
//----------------//
// choose backgrounds and update
//-----------------//
if ($_REQUEST['task'] == 'update')
{
$theme = isset($_REQUEST['theme']) ? $_REQUEST['theme'] : '';
$size = isset($_REQUEST['size']) ? $_REQUEST['size'] : '';
mysql_query("update pg_user set align='$align', theme='".$theme."_".$size.".css' where login='$user'");
echo "<div style=\"font-weight: bold; color: #3C6400; background-color:#E1FAE1; border: 1px solid #3C6400; padding: 2px\">";
echo "<b>Profile Style</b><br/></div>";
}
echo "</p>";
echo "<form action=\"profile-edit_photo.php?".$mysid."\" method=\"post\">";
echo "<p>";
echo "<b>Profile Color</b>:<br/>";
echo "<select name=\"theme\">";
echo "<option value=\"white\">White</option>";
echo "<option value=\"black\">Black</option>";
echo "<option value=\"red\">Red</option>";
echo "<option value=\"blue\">Blue</option>";
echo "<option value=\"green\">Green</option>";
echo "</select>";
echo "<select name=\"size\">";
echo "<option value=\"small\">Small</option>";
echo "<option value=\"medium\">Medium</option>";
echo "<option value=\"large\">Large</option>";
echo "</select>";
echo "<input name=\"task\" type=\"hidden\" value=\"update\"/>";
echo "<input name=\"$sessname\" type=\"hidden\" value=\"$cid\"/>";
echo "<input name=\"submit\" type=\"submit\" class=\"submitter\" value=\"Save\"/>";
echo "</form>";
is there any fault there?
Comment