| 
	
 | 
 Posted by Bert on 05/10/05 15:45 
On 10 May 2005 01:08:44 -0700, "Brian Olivier" <brian@olivier.com> 
wrote: 
 
>Hello, 
> 
>The first option is what I want, but the fact that I can't put code in 
>the curlies in a string  is what I wanted to know. I was hoping for a 
>smart string, but I will program the intelligence outside of the 
>string! 
 
you can do this: 
 
<?php 
echo(isset($_POST['name']))?'<br>':''; 
?> 
 
if $_POST['name'] is set, a <br> will be echoed, if it is not, nothing 
will be echoed 
 
hth, 
B.
 
  
Navigation:
[Reply to this message] 
 |