[PHP] Re: Newbie ' If Statement' Question

2008-03-19 Thread Dan
heredoc is probably the best way to go. There's no way you can mess up your quotes, and you don't have to worry about escaping. Altough I wonder what would happen if you put ?> in a heredoc, would it stop processing the php, thinking that it was the end of the php file, or would it just treat

[PHP] Re: Newbie ' If Statement' Question

2008-03-16 Thread Al
Here's how I'd do it. getRecordId();//Or, you can put this inside the heredoc with {} //heredoc $str= << txt; if (!empty($emp_row->getField('testfield')) print $str; else print "Non Print"; ?> [EMAIL PROTECTED] wrote: Hello Folks, I would like to be able to wrap a 'form' inside a php '