You are here: Re: Setting radio button state « PHP Programming Language « IT news, forums, messages
Re: Setting radio button state

Posted by Erwin Moller on 11/15/06 14:33

IchBin wrote:

>
> I am trying to set the state of a radio button. I do not see what I am
> doing wrong. Sorry, I am new at this.. I need another set of eyes to
> look at this snip of code. I am trying to set the radio button with this
> link of code:
>
> echo 'SCRIPT language=JavaScript
> setCheckedValue("'.$_SESSION['abbr_letter'].'");</SCRIPT>'; //?

Hi,

The above line produces the following HTML:
SCRIPT language=JavaScript
setCheckedValue("'.$_SESSION['abbr_letter'].'");</SCRIPT>

EXCACTLY that goes to the browser.

You probably mean something like this:
echo '<SCRIPT type="text/javascript">';
echo 'setCheckedValue("'.$_SESSION['abbr_letter'].'");';
echo '</SCRIPT>';

(I haven't look at the rest for now because this line will cause JS to fail
from the start.)

Regards,
Erwin Moller

 

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

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