string value in select tag not working as desired with strings

string value in select tag not working as desired with strings

am 19.05.2011 23:11:26 von Fahim M

--0016e6db2e40bff15f04a3a772f0
Content-Type: text/plain; charset=ISO-8859-1

Hi

I have the following code:
When the option value is integer, the select button is working perfectly
selecting the option. In case when the value is string, the post value does
reflect the selected item in the selection box but does not select it. I am
totally confused what is wrong with my code.








the above code does select the clicked entry in selection box but the
following code does not select the clicke item and always shows organism.



Any help???
thanks

Fahim

--0016e6db2e40bff15f04a3a772f0--

Re: string value in select tag not working as desired with strings

am 20.05.2011 12:20:19 von Richard Quadling

On 19 May 2011 22:11, Fahim Mohammad wrote:
> Hi
>
> I have the following code:
> When the option value is integer, the select button is working perfectly
> selecting the option. In case when the value is string, the post value do=
es
> reflect the selected item in the selection box but does not select it. I =
am
> totally confused what is wrong with my code.
>
>
>
>
>
>
>
>
> the above code does select the clicked entry in selection box but the
> following code does not select the clicke item and always shows organism.
>
>
>
> Any help???
> thanks
>
> Fahim
>

1 - There may be an issue with ...

key equals space quote - value=3D 'rat'

Instead, use

key equals doublequote - value=3D"rat"

2 - selected may need to be shown as selected=3D"selected"

I think this is a due to a difference in the HTML / XHTML standards,
so depending upon the doctype you are generating ...



--=20
Richard Quadling
Twitter : EE : Zend : PHPDoc
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY : bit.ly/iZdpBR

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php