Reply to Re: How to modify CSS with PHP?

Your name:

Reply:


Posted by ibreakyourlegs@googlemail.com on 08/23/06 07:48

deko wrote:
> Okay, I've got the combo box on the page:
>
> <select name=color>
> <option value=yellow>yellow</option>
> <option value=white>white</option>
> <option value=white>gray</option>
> </select>
>
> And I have this at the top of the page in the head section:
>
> $background = trim($_POST['color']);
> [and then the if-else statement with the style directives]
>
> My question is this:
>
> How do I make the page refresh after the user selects the color preference? Do
> I need to put the combo box inside a form? I tried this:
>
> <select name=color onChange="post">
>
> but no luck.

yes you need a form. when you have insert the form you can use this:
<select name=color onChange="document.NAMEOFTHEFORM.submit()"> to
submit the Form after selecting the value.

greetingz

[Back to original 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

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