You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Umar Goldeli <um...@atlas.synflux.com.au> on 2000/04/20 08:33:43 UTC

Dissapearing /TR's

Greetings,

I am thouroughly at a loss..

The code is as follows:

<form action="adduser2.epl" method=post>
<table border=1>

<tr><td>[+ $head->[$col] +]:<input type="textbox" name="[+ $head->[$col]
+]" value="[+ $result -> [$row][$col] +]"></td></tr>

</table>
<input type=submit>
</form>


And for some strange reason - the output eats all the </tr>'s - thus
leaving me with one long line of results..

Any advice would be *greatly* apprecaited.


//umar.



RE: Dissapearing /TR's

Posted by Gerald Richter <ri...@ecos.de>.
> Try putting
>
> [-
>
>   $optDisableHtmlScan = 1;
>   $optDisableTableScan = 1;
>   $optRawInput = 1;
>   $escmode = 0;
>
> -]
>
> :) then your html/table whatever code is left alone...
>
Yes, but I thing that's not what thr original poster wants. As far as I can
see, he wants to iterate over @$result (see the usage of $row and $col)

Gerald


RE: Dissapearing /TR's

Posted by egill runar erlendsson <eg...@gm.is>.
Try putting

[-

  $optDisableHtmlScan = 1;
  $optDisableTableScan = 1;
  $optRawInput = 1;
  $escmode = 0;

-]

:) then your html/table whatever code is left alone...

egill

-----Original Message-----
From: Gerald Richter [mailto:richter@ecos.de]
Sent: 21. apríl 2000 19:13
To: Umar Goldeli; embperl@perl.apache.org
Subject: RE: Dissapearing /TR's


>
> <tr><td>[+ $head->[$col] +]:<input type="textbox" name="[+ $head->[$col]
> +]" value="[+ $result -> [$row][$col] +]"></td></tr>
>
Does it change anything if you change your code to the following (intention
is just for better readablility)?

<tr>
  <td>
    [- $h = $head->[$col] ; $r = $result -> [$row][$col] -]
    [+ $h +]:<input type="textbox" name="[+ $h +]" value="[+ $r +]">
  </td>
</tr>

Gerald


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


RE: Dissapearing /TR's

Posted by Gerald Richter <ri...@ecos.de>.
>
> <tr><td>[+ $head->[$col] +]:<input type="textbox" name="[+ $head->[$col]
> +]" value="[+ $result -> [$row][$col] +]"></td></tr>
>
Does it change anything if you change your code to the following (intention
is just for better readablility)?

<tr>
  <td>
    [- $h = $head->[$col] ; $r = $result -> [$row][$col] -]
    [+ $h +]:<input type="textbox" name="[+ $h +]" value="[+ $r +]">
  </td>
</tr>

Gerald