Dynamic tables

From: Date: Fri, 17 Oct 2003 06:42:34 +0000
Subject: Dynamic tables
Groups: php.general 
Request: Send a blank email to php-general+get-166420@lists.php.net to get a copy of this message
Hi all, Having a slight problem with dynamic tables here. I am trying to create a timetable using PHP, HTML, and MySQL, where all the cells in the table are coloured and that the colour of the cells can be changed using a drop down menu. Here's a snip of the code that I have done: <td bgcolor=<? echo"$_POST[colour]"?> class="Devi" width="15%" align="center" valign="middle"><a href="select1.php">2PE1012</a></td> <select name="colour" class="textarea" align="center"> <option name= "Grey" value="#dedede">Grey</option> <option name="Pink" value="#FFB6C1">Pink</option> <option name="Blue" value="#87CEEB">Blue</option> <option name=Yellow value="#FFFF00">Yellow</option> <option name="Cyan" value="#AFEEEE">Cyan</option> </select> Right now, I am able to change the colour of cells using a drop down menu, and when I clicked on "Reload" it still remains the colour that I have changed, but when I open the page in another browser, as I echoed the value "colour", the browser displayed a mixture of the colour code :grey, pink, blue, etc.... How can I do it in the way that when I opened up a new browser it will display only the colour that I have changed to earlier on?....Hope to get some help soon...thanks for all help given. Regards, Irin.

« previous php.general (#166420) next »