i need to return information from a php grab function in html so i can post it in my form.
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
2010-08-03 14:13:05
@mohamem23 see my answer below i believe this is what you will want.
Chris
2010-08-03 14:22:02
+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
2010-08-03 14:12:14