Hi,
If I make a function that outputs a form how do I then pass that function on to say a template as a variable?
Here is my test example (without the template stuff)
<?
function form() {
?>
<form action ="somthing.php">
<input type ="text">
</form>
<?
}
$test=html_test();
Print("testing var" . $test);
?>
Problem is that it executes the function when I try to assign it to a var and wont print the form when I ask it to
Any ideas or insights appreciated!
Cheers
Nick