Hi.
It's very strange. I found no error with your code and result.
I have copied your code and $value1 and $value2 work properly.
result comes
<input CHECKED type="radio" name="cc" value="0">
I guess, it may be another problem.....
bye.
On Tue, 18 Apr 2000, Joe Lauer wrote:
> I wonder if anyone has noticed this error in embperl. Embperl will refuse
> to print out CHECKED or SELECTED with in <input> or <select> tags if they
> are stored within a variable. I think the following code example will best
> explain the situation.
>
> [-
> #store values
> $value1 = "";
> $value2 = "";
>
> #do whatever processing then based on a response, now select which
> #input tag to mark as checked
> $value1 = "CHECKED";
> -]
>
> <input [+$value1+] type="radio" name="cc" value="0">
>
> The only result I have gotten is that nothing will ever be printed out. Now
> of course I've used work arounds like doing an if-then block, but I wonder
> if this is a bug? The same occurs in <select> blocks when trying to place
> SELECTED in an <option> tag by using a variable.
>
> Joe
>
>
> ______________________________________________________
> Joe Lauer
> work/home (202)238-1349
> cell (202)345-2335
>
> Send me a page through SimpleWire.com. Just hit this url:
> http://www.simplewire.com/sendpage.epl?[EMAIL PROTECTED]&submit=G
> o%20To%20Step%202
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]