Remembering text resizing across different pages on a web site using PHP SESSIONS -
After reviewing some tutorials in this way, how to change text size and how to build yourself using PHP I was wondering how can I get my own text If (isset ($ _GET ['i']) & amp; is_numeric ($ _GET ['I'])) {$ s = $ _GET ['i']; } If ($ s == TRUE) {$ size = ($ s * 1.2); } If (isset ($ _GET ['m']) & amp; is_numeric ($ _GET ['m'])) {$ m = $ _GET ['m']; } If ($ m == TRUE) {$ size = ($ m * 0.8); } If (AZAT ($ _GET ['n']) & amp; amp; is_numeric ($ _GET ['n'])) {$ n = $ _GET ['n']; } If ($ n == true) {$ size = 100; } Here is the CSS code. And here is the XHTML. PHP sessions?
$ size = 100; Remembered from many different pages on my web site using
#content {font-size: & lt ;? Php echo $ size; ? & Gt;%; }
& lt; A href = "index.php? I = & lt; php echo $ size;; & gt;" title = "" & gt; Increase & lt; / A & gt; & Lt; Br / & gt; & Lt; A href = "index.php? M =" php $ size;;> title = "" "& gt; subtract
So when your user clicks on a link, then PHP will be able to $ _ session ['I'] = $ _GET ['i'];
something like that and then when you use the visitor On a page you can see, if you have the value of $ _ session ['i']
- if this happens then use this value, if not, back to the default Return.
Check out this great tutorial:
Comments
Post a Comment