First all, make sure you out put session_start() on all pages, before any content is posted.
Up vote 0 down vote favorite share g+ share fb share tw.
Here is the PHP text sizer code below. $size = 100; if(isset($_GET'i') && is_numeric($_GET'i')) { $s = $_GET'i'; } if($s == TRUE){ $size = ($s * 1.2); } if(isset($_GET'm') && is_numeric($_GET'm')) { $m = $_GET'm'; } if($m == TRUE){ $size = ($m * 0.8); } if(isset($_GET'n') && is_numeric($_GET'n')) { $n = $_GET'n'; } if($n == TRUE){ $size = 100; } Here is the CSS code. #content { font-size : %; } And here is the xHTML.
" title=""> Increase " title=""> Decrease " title=""> Normal php session link|improve this question edited Jul 27 '10 at 15:26Brad F Jacobs9,64621231 asked Jul 27 '10 at 15:22How to6.
First all, make sure you out put session_start() on all pages, before any content is posted. From here, you're able to set session variables (which will be saved into a session cookie typically). So when your user clicks a link, PHP should set something like $_SESSION'i' = $_GET'i'; and then when you visitor comes back to a page, you just see if $_SESSION'i' has a value - if it does, use this value, if not, revert to default.
Check out this great tutorial: php sessions - why use them?
Just don't use $_GET variables, use $_SESSION vars instead. Be sure to include the relevant session_start() functions and all that.
– How to Jul 27 '10 at 15:27 If you're not familiar with how to use session variables, read the tutorial mentioned in @jakeisonline's post. They're very simple to use and can be extremely helpful. – eykanal Jul 27 '10 at 15:38.
As mentioned, you'll want to your the $_SESSION object instead of $_GET. You'll need to add a call to session_start() at the start of each page (check the examples on this link; will show you how to use sessions on a basic level). You may also want to take a look at Local Web Storage (browser-based) in HTML5.
Check out this tutorial. It's quite easy to implement. Of course, not all browsers implement web storage, but it's pretty ubiquitous (Depending if you want to support.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.