[GRLUG] PHP & <textarea>

L. V. Lammert lvl at omnitec.net
Mon Nov 14 18:45:02 EST 2011


Trying to fix some problems with a website, .. it retrieves event data and
displays on the screen if existing, if new, it displays a template to
enter Home & Away teams:

<div class="formLabel">Teams</div><div class="formElement">
 <textarea rows="2" cols="30" name="event_title" id="event_title_game">
   <?php echo (empty($event_title)?"H: \n    A: \n" : $event_title); ?>
 </textarea>
</div>

The text area seems to have a number of spaces preceeding either the data
or the 'template', and there seem to be no clues how to prevent it. More
interesting is the fact that there ARE no leading spaces IN the DB!

        TIA,

        Lee


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the grlug mailing list