You are here: Re: Radio button/Checkbox value passing « PHP Programming Language « IT news, forums, messages
Re: Radio button/Checkbox value passing

Posted by Gary Hasler on 12/08/06 21:56

Jerim79 wrote:
> ...What I am attempting to do, is make
> is so that if the customer chooses YES on a radio button and the form
> is submitted,; ifthey are sent back to the form to correct an error,
> the radio button YES is still checked...

AFAIR you have to use a condition to write "checked" into the tag if the
submitted value for the radio button group matches this button's value:
eg
<input type="radio" name="whatever" value="Yes"
<?php if ($whatever.value=="Yes") echo " checked";?>
>
(I hope I got that right; working from memory!)

 

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

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