Re: HTML Forms - Selection Lists
| From: | Jason Wong | Date: | Mon, 14 Apr 2003 07:05:41 +0000 |
| Subject: | Re: HTML Forms - Selection Lists | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-143720@lists.php.net to get a copy of this message | ||
On Monday 14 April 2003 13:40, PHP4 Emailer wrote:
> <Select name="name">
> <Option value="#FFFFFF">White</Option>
> <Option value="#F0F8FF">AliceBlue</Option>
> <Option value="#FAEBD7">Antique White</Option>
> </Select>
>
> Please don't worry about the syntax at this moment, I have it doing what I
> want with the hexadecimal values when it pulls that to the next php page.
>
> What I want it to pull aswell as that Hexadecimal value is the actually
> name the user would select from the form, in this example the selection
> "White" or "AliceBlue" or "Antique White", I have many reasons to
> want to
> do this, one being: Name values that won't work by using the actual name
> for the color, Example: "White Smoke" or "AliceBlue but their hexadecimal
> counterpart works awesome.
> In this example Either: #F5F5F5, #F0F8FF or FAEBD7.
<Select name="name">
<Option value="White#FFFFFF">White</Option>
<Option value="AliceBlue#F0F8FF">AliceBlue</Option>
<Option value="Antique White#FAEBD7">Antique White</Option>
</Select>
explode() on '#' to separate text and hex.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
You want brutality and heuristics? I'll give you brutality and heuristics...
- Eric S. Raymond on linux-kernel
*/