You are here: Re: How to modify CSS with PHP? « PHP Programming Language « IT news, forums, messages
Re: How to modify CSS with PHP?

Posted by Ted on 08/23/06 18:19

On Wed, 23 Aug 2006 11:07:59 -0700, deko wrote...
>
>This seems to be working:
>
><form name="bgcolor" action="http: // www . example . com/ks123/?p=85"
>method="post">
> <select name=color onChange="bgcolor.submit()">
> <option value=white>white</option>
> <option value=yellow>yellow</option>
> </select>
></form>
>
>BUT, after the page posts back, the option value in the combo box reverts back
>to 'white' rather than sticking with what the user just selected.
>
>How do I get it to stick with the user's choice on post back? Do I have to grab
>that value with PHP code and then set the combo default manually? How?
>


Since the "white" option is the first on the list, that may end up being the
default. You can probably check the value and print " selected" in the
appropriate option. Maybe adding a

<option value-"">select</option>

option at the top of the list

Ted
--
Newsguy.com - Basic Accounts $39.95 / 12 months

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация