You are here: Re: text within textarea shifted after redisplay form « PHP Programming Language « IT news, forums, messages
Re: text within textarea shifted after redisplay form

Posted by Rik on 06/14/06 07:07

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация