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]
|