Re: Dynamic tables-Change cell colour with drop down menu[Scanned]
| From: | irinchiang at justeducation dot com | Date: | Fri, 03 Oct 2003 05:14:01 +0000 |
| Subject: | Re: Dynamic tables-Change cell colour with drop down menu[Scanned] | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164851@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.
Eugene Lee <list-php-1@fsck.net> wrote:
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>
>>>>>>How to switch to the superglobals??Go php.ini and uncomment
"superglobals"??...
Regards,
Irin.