in reply to Creating a table using cgi.pm - a unique problem

I saw [id://ph713]'s reply as I finished typing mine. Basically the same thing, but I don't want to waste the time I spent figuring it out, so here it goes...
$cgi->Tr({ -align=>'LEFT', -valign=>'TOP'}, td( [ $cgi->a( {-href=>"..", -target=>"_new"}, $cgi->img('asdf')) +, $cgi->a( $value1 ) ]), td( { -OnClick=>"javascript:dothis()" }, [ $cgi->hidden( -name=>'name2', -value=>'$value2' ). $cgi->a( $value2) ]), td( { -OnClick=>"javascript:dothis()" }, [ $cgi->hidden( -name=>'name3', -value=>'$value3' ). $cgi->a( $value2) ]), );

Update: Fixed (hopefully) as per [id://pg]'s post.

Replies are listed 'Best First'.
Re^2: Creating a table using cgi.pm - a unique problem
by pg (Canon) on Oct 29, 2005 at 00:58 UTC

    Your script does not produce one table row as the original script does/requires, as a matter of fact, it produces three rows:

    <tr align="LEFT" valign="TOP"> <td><a target="_new" href=".."><img>asdf</img></a></td> <td><a>A</a></td> </tr> <tr align="LEFT" valign="TOP"> <td onclick="javascript:dothis()"><input type="hidden" name="name2 +" value="b" /><a>b</a></td> </tr> <tr align="LEFT" valign="TOP"> <td onclick="javascript:dothis()"><input type="hidden" name="name3 +" value="c" /><a>c</a></td> </tr>