how can I change the web page bgcolor with radio button with $_SESSION?
I know how it works with button but I don’t know how it works with radio button or combo box.
I’m a beginner so please don’t use very professional codes!! This is a school homework!
My code with button:
session_start(); $_SESSION['color']="yellow"; ?> <body> <form action="sessioncolor2.php" name="action" method="post"> <input type="submit" name="submit" id="submit" value="Submit"> </form> </body>
<body bgcolor="<?php echo $_SESSION['color']?>"> </body>
I mean I want something like those codes!