rukkie wrote:
After a redisplay of the form, caused by errors in other fields, the
text which is in the "Observ" textarea is shifted (some 8 places) to
the right (and this each time after a redisplay). The code used in
case of redisplay is :
<tr>
<td align="right">
Observations :
</td>
<td>
<textarea align="left" cols="50" rows="10" name="Observ">
<? echo $Observ ;?></textarea>
</td>
</tr>
Does anyone has a clue what is causing the shift and how to solve it ?
Not without the cause of the errors.
Perhaps usefull pointers:
- using <?php is preferred instead of <?
- what does $_REQUEST['Observ'] do?
- are there any actions/errors which can alter $Observ?
- PHP has nothing to do with displaying, that's all HTML (/&CSS), so, what
does you HTML source say?
- I definitely count 8 spaces before <?, so displaying a linebreak, and 8
spaces, may be just correct behaviour.
In short:
What does this code do:
<textarea><?php echo $_REQUEST['Observ'] ;?></textarea>
Grtz,
--
Rik Wasmus