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?alias=joelauer@rootlevel.com&submit=G
o%20To%20Step%202
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?alias=joelauer@rootlevel.com&submit=G
o%20To%20Step%202