RE: [PHP] Dynamic tables-Change cell colour with drop down menu[Scanned]
| From: | Michael Egan | Date: | Thu, 02 Oct 2003 10:39:59 +0000 |
| Subject: | RE: [PHP] Dynamic tables-Change cell colour with drop down menu[Scanned] | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-164720@lists.php.net to get a copy of this message | ||
One possible solution:
In the form create the dropdown menu with the colour name being displayed to the user but the
hexadecimal value of the colour being stored in the value field, i.e.
<select name='colour'>
<option value='#ff0000'>Red</option>
</select>
When user selects the colour this should give you the colour reference to use when displaying the
resulting page, i.e. $colour, which you could then use when creating the cell in the table - <td
bgcolor='$colour'>
HTH,
Michael Egan
-----Original Message-----
From: irinchiang@justeducation.com [mailto:irinchiang@justeducation.com]
Sent: 02 October 2003 11:40
To: 'PHP General'
Subject: [PHP] Dynamic tables-Change cell colour with drop down
menu[Scanned]
Hi all:
I am doing a dynamic kinda timetable where all the cells are uniquely coloured.
And then for each cell, I would like to change its colour through a dropdown
menu. This dropdown menu should of course have a list of colours for me to
choose. Once I have selected the colour I want, the particular cell colour
should be changed to the colour which i have selected earlier on, once the page
is refreshed. Is there any way to do it using PHP ??I do not want to it using
javascript as java script can only display data on the client side but not the
server side.
Any help given are greatly appreciated.
Regards,
Irin.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php