iTom
09-24-2005, 03:05 PM
Hi everyone,
I am having a problem. I am creating a website for our band, and I came across a problem which has stumped me. I want to be able to change the font size through CSS and PHP, but, when you change the page, I want the font size to stay as the user specified. Also, can it be the same for the poll. I tried to make a parameter saving code but that failed.
Here is my code:
<?php // parameter saving code
$extraparams = $_GET["sheet"] + "&" + $_GET['poll0509'] + "&" + $_GET['pollsubmit'];?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Liquid NČO :: OFFICIAL band website, that's confirmed</title>
<style type="text/css">
<?php
if (isset($_GET["sheet"])) {include($_GET["sheet"]);} else {include('stylenorm.css');
}
?>
</style>
</head>
<body>
<div id="maindiv">
<div id="logo-left"><span> </span></div>
<div id="menu-right"><span class="menu"> <a class="menu" href="?uri=home.php&<?php echo $extraparams; ?>">Home</a> :: <a class="menu" href="?uri=about.php&<?php echo $extraparams; ?>">About us</a> :: <a class="menu" href="?uri=team.php&<?php echo $extraparams; ?>">Team</a> :: <a class="menu" href="?uri=bios.php&<?php echo $extraparams; ?>">Bios</a> :: <script language="javascript" src="cgi-bin/online/online.cgi?output=javascript"></script> fan(s) online!!!</span><br /><marquee class="news-ticker">Band News :.: Website up and running! :.:</marquee></div>
<div id="text-holder"><span>
<br /><table width="100%"><td width="75%" valign="top"><?php
if (isset($_GET["uri"])) {include($_GET["uri"]);} else {include('home.php');
}
?>
</td><td valign="top" width="25%"><div id="left-content"><h5>Styles::.</h5>If you want to change the stylesheet, you may do here: <br /><br /><a href="?sheet=stylebig.css"><font size="4">Big fonts</font></a><br /><a href="?sheet=stylenorm.css"><font size="3">Normal fonts</font></a><br /><a href="?sheet=stylesmall.css"><font size="2">Small fonts</font></a><br /><br /><h5>Sample our music::.</h5>What do you think of our music?
<small><a href="http://liquidn20.tgohome.com/" onclick="musicman('http://www.freewebs.com/host101/samp.wav');">[listen now]</a></small><br /><br /><h5>Kwik News::.</h5><br />Check this section for quick news... <br /><br />
<?php require('kwiknews.php'); ?><br /><h5>Poll::.</h5>How good
would you rate our music?<br /><br />10 = Best, 1 = Worst<br />
<?php
if($_GET['poll0509'] > '01')
{
echo('<h6 style="color:green">Vote successful!<br />Thank you for voting!</h6>');
}
else if($_GET['poll0509'] >= '11')
{
echo('<h6 style="color:red">Vote failed!<br />Option ');
echo($_GET['poll0509']);
echo(' was choosen. Please choose an option beetween 1-10</h6>');
}
else
{
echo('<form name="poll0509"><input type="radio" value="10" name="poll0509" />10 stars<br /><input type="radio"
value="09" name="poll0509" />9 stars<br /><input type="radio" value="08" name="poll0509" />8 stars<br /><input type="radio"
value="07" name="poll0509" />7 stars<br /><input type="radio" value="06" name="poll0509" />6 stars<br /><input type="radio"
value="05" name="poll0509" />5 stars<br /><input type="radio" value="04" name="poll0509" />4 stars<br /><input type="radio"
value="03" name="poll0509" />3 stars<br /><input type="radio" value="02" name="poll0509" />2 stars<br /><input type="radio"
value="01" name="poll0509" />1 star<br /><input name="submit-poll0509" value="Submit Poll" class="pollsubmit" type="submit"
/></form>');
}
?>
<h5>Sidechat::.</h5>Use this cool chatbox to chat to fans live! And, if this wasn't as good enough bonus, if a band member is online then you can chat to them! You do not need to register for anything, so get typing!<br /><br /><small>Please remeber not to give out <b>any</b> personal information. </small><br /><br /><?php require('sidechat.php') ?><br /><br /><h5>Sideblog::.</h5><br />This is where the band members blog. Only band members can blog here. If you don't know what a blog is, it is an internet diary, or 'blog'; similar to B2 or Wordpress. <br /><?php require('sideblog.php'); ?></div></td></table><br /><br /></div>
<div style="text-align:right">
<h4>Liquid NČO // please dont try it at home</h4><small><span class="com-bot">Comments? <a href="mailto:liquidn20@tgohome.com"
class="com-bot">[Email the band!]</a> | Or, if you wish to help with fundrasing, <a class="com-bot" href="mailto:band-fundrasing@tgohome.com">click here</a> to email the team. <br />Web hosting: tgohome.com, Thomas Oldbury</span></small></div>
</div>
<div id="copyright">©opyright 2005 Liquid NČO // all music is owned by Liquid NČO, the name, Liquid NČO is copyrighted 2005. <br /><a href="http://creativecommons.org/licenses/by-nc-nd/2.0/deed-music" class="cfooter">CC Music</a> | <a class="cfooter" href="http://creativecommons.org/licenses/by-nc-nd/2.5/">CC Text / Name</a></div>
</body>
</html>
link: http://www.liquidn20.tgohome.com/
I am having a problem. I am creating a website for our band, and I came across a problem which has stumped me. I want to be able to change the font size through CSS and PHP, but, when you change the page, I want the font size to stay as the user specified. Also, can it be the same for the poll. I tried to make a parameter saving code but that failed.
Here is my code:
<?php // parameter saving code
$extraparams = $_GET["sheet"] + "&" + $_GET['poll0509'] + "&" + $_GET['pollsubmit'];?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>Liquid NČO :: OFFICIAL band website, that's confirmed</title>
<style type="text/css">
<?php
if (isset($_GET["sheet"])) {include($_GET["sheet"]);} else {include('stylenorm.css');
}
?>
</style>
</head>
<body>
<div id="maindiv">
<div id="logo-left"><span> </span></div>
<div id="menu-right"><span class="menu"> <a class="menu" href="?uri=home.php&<?php echo $extraparams; ?>">Home</a> :: <a class="menu" href="?uri=about.php&<?php echo $extraparams; ?>">About us</a> :: <a class="menu" href="?uri=team.php&<?php echo $extraparams; ?>">Team</a> :: <a class="menu" href="?uri=bios.php&<?php echo $extraparams; ?>">Bios</a> :: <script language="javascript" src="cgi-bin/online/online.cgi?output=javascript"></script> fan(s) online!!!</span><br /><marquee class="news-ticker">Band News :.: Website up and running! :.:</marquee></div>
<div id="text-holder"><span>
<br /><table width="100%"><td width="75%" valign="top"><?php
if (isset($_GET["uri"])) {include($_GET["uri"]);} else {include('home.php');
}
?>
</td><td valign="top" width="25%"><div id="left-content"><h5>Styles::.</h5>If you want to change the stylesheet, you may do here: <br /><br /><a href="?sheet=stylebig.css"><font size="4">Big fonts</font></a><br /><a href="?sheet=stylenorm.css"><font size="3">Normal fonts</font></a><br /><a href="?sheet=stylesmall.css"><font size="2">Small fonts</font></a><br /><br /><h5>Sample our music::.</h5>What do you think of our music?
<small><a href="http://liquidn20.tgohome.com/" onclick="musicman('http://www.freewebs.com/host101/samp.wav');">[listen now]</a></small><br /><br /><h5>Kwik News::.</h5><br />Check this section for quick news... <br /><br />
<?php require('kwiknews.php'); ?><br /><h5>Poll::.</h5>How good
would you rate our music?<br /><br />10 = Best, 1 = Worst<br />
<?php
if($_GET['poll0509'] > '01')
{
echo('<h6 style="color:green">Vote successful!<br />Thank you for voting!</h6>');
}
else if($_GET['poll0509'] >= '11')
{
echo('<h6 style="color:red">Vote failed!<br />Option ');
echo($_GET['poll0509']);
echo(' was choosen. Please choose an option beetween 1-10</h6>');
}
else
{
echo('<form name="poll0509"><input type="radio" value="10" name="poll0509" />10 stars<br /><input type="radio"
value="09" name="poll0509" />9 stars<br /><input type="radio" value="08" name="poll0509" />8 stars<br /><input type="radio"
value="07" name="poll0509" />7 stars<br /><input type="radio" value="06" name="poll0509" />6 stars<br /><input type="radio"
value="05" name="poll0509" />5 stars<br /><input type="radio" value="04" name="poll0509" />4 stars<br /><input type="radio"
value="03" name="poll0509" />3 stars<br /><input type="radio" value="02" name="poll0509" />2 stars<br /><input type="radio"
value="01" name="poll0509" />1 star<br /><input name="submit-poll0509" value="Submit Poll" class="pollsubmit" type="submit"
/></form>');
}
?>
<h5>Sidechat::.</h5>Use this cool chatbox to chat to fans live! And, if this wasn't as good enough bonus, if a band member is online then you can chat to them! You do not need to register for anything, so get typing!<br /><br /><small>Please remeber not to give out <b>any</b> personal information. </small><br /><br /><?php require('sidechat.php') ?><br /><br /><h5>Sideblog::.</h5><br />This is where the band members blog. Only band members can blog here. If you don't know what a blog is, it is an internet diary, or 'blog'; similar to B2 or Wordpress. <br /><?php require('sideblog.php'); ?></div></td></table><br /><br /></div>
<div style="text-align:right">
<h4>Liquid NČO // please dont try it at home</h4><small><span class="com-bot">Comments? <a href="mailto:liquidn20@tgohome.com"
class="com-bot">[Email the band!]</a> | Or, if you wish to help with fundrasing, <a class="com-bot" href="mailto:band-fundrasing@tgohome.com">click here</a> to email the team. <br />Web hosting: tgohome.com, Thomas Oldbury</span></small></div>
</div>
<div id="copyright">©opyright 2005 Liquid NČO // all music is owned by Liquid NČO, the name, Liquid NČO is copyrighted 2005. <br /><a href="http://creativecommons.org/licenses/by-nc-nd/2.0/deed-music" class="cfooter">CC Music</a> | <a class="cfooter" href="http://creativecommons.org/licenses/by-nc-nd/2.5/">CC Text / Name</a></div>
</body>
</html>
link: http://www.liquidn20.tgohome.com/