Re: Dynamic tables-Change cell colour with drop down menu[Scanned]

From: Date: Fri, 03 Oct 2003 04:18:21 +0000
Subject: Re: Dynamic tables-Change cell colour with drop down menu[Scanned]
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-164850@lists.php.net to get a copy of this message
On Fri, Oct 03, 2003 at 11:27:25AM +0800, irinchiang@justeducation.com wrote: : : I have tried using the methos you have mentioned. But it was not : successful as the cell doesn't seem to be able to GET the COLOUR : selected from the drop down menu. This is a small part of my code : : : <td bgcolor="$colour"> cell1 </td> : : & : <select name="colour"> : <option value="#ff0000">Red</option> : <option value="#dedede">Grey</option> : <option value="#DCDCDC">white</option> : <option value="#FFB6C1">Pink</option> : <option value="#87CEEB">Blue</option> : <option value="#FFFF00">Yellow</option> : <option value="#AFEEEE">Cyan</option> : </select> : : No matter which colour I select. The cell only stay at "black" colour. : I wonder why?Need some help here. If you're on a system that has global variables disabled, you must switch to the superglobals. <td bgcolor="$_GET['colour']"> cell1 </td> or: <td bgcolor="$_POST['colour']"> cell1 </td>

« previous php.general (#164850) next »