Hi
I was wondering if there is a better method for outputting html than echoing it all. For example
if(isset($add)){
echo("<form action=xx>");
echo("<input type=text ....">;
}
Think i have seen somewhere something like this
if(isset($add)):
?>
<form action=xxx>
<input type= name= value=>
<input type=submit>
</form>
However I don't think that is possible if you want to set some variables within the if statement to use in the form.
Eg
<?php
if(isset($add)):
//Database query
//Set some variables from the results
?>
html form
Anyone have any idea what i'm going on about??
Thanks
Nick