Rather than use =, have you tried echo

value="<? echo $i ?>"

Chris

> -----Original Message-----
> From: Michael Gerholdt [mailto:[EMAIL PROTECTED]]
> Sent: 09 March 2001 14:03
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] Whence Cometh Line Break?
> 
> 
> I've discovered that this little bit of code is introducing a line break
> into my
> SQL string and it is causing it to break.
> 
> the month comes through as '[linebreak here]Mar'
> 
> <? $i = date("M",mktime(0,0,0,date("m")-1,date("d"),date("Y")));?>
> <input type="radio" name="month" value="<?=$i?>">&nbsp;<?=$i?>
> 
> (these are two unbroken lines in original code.)
> 
> Where does a line break come from in
> value="<?=$i?>" ??
> 
> I'm mystified!
> 
> Thanks,
> Mike
> 
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to