tags:

views:

68

answers:

2

i need to return information from a php grab function in html so i can post it in my form.

A: 
<input type="text" name="test" value="<?php echo 'test'; ?>"/>

?

hsz
this not what i am asking for .. but thank you i have a function that return information from a databaseand i need to build a function that display this information
Mohamed23
@mohamem23 see my answer below i believe this is what you will want.
Chris
+1  A: 

You could simply do something like this on a page called demo.php...

<?php 
function grabHTML(){
   //could just display some html or query database for stuff..
   echo "<p>some html</p>"; 
}

?>

<html>
<body>
<?php grabHTML(); ?>
</body>
</html>
Chris