[Phpmyadmin-devel] pretty code, buggy code?
    Benjamin Gandon 
    gandon at isia.cma.fr
       
    Tue Jul 31 12:30:09 CEST 2001
    
    
  
> Correct code will not be so pretty:
> 
> <textarea name="fields[<?php echo urlencode($field); ?>]"
>   rows="<?php echo $cfgTextareaRows; ?>"
>   cols="<?php echo $cfgTextareaCols; ?>"><?php if
> (!empty($special_chars)) echo $special_chars . "\n"; ?>
> </textarea>
I think your code still inserts a line feed at the end of 
the textarea. Correct code would be even less pretty:
<textarea name="fields[<?php echo urlencode($field); ?>]"
  rows="<?php echo $cfgTextareaRows; ?>"
  cols="<?php echo $cfgTextareaCols; ?>"><?php if
(!empty($special_chars)) echo $special_chars . "\n"; 
?></textarea>
    
    
More information about the Developers
mailing list