Posted by J.O. Aho on 12/22/06 07:17
Dave Nash wrote:
> Hi everyone.
>
> I am using the following code to call a function within a standard
> html form.
>
> <?php echo fileselect(); ?>
>
> This works great, but How do I call the same function with a php coded
> page
>
>
> example
>
> echo" insert function here ";
>
> Ive tried many variations but none seem to work
>
> thanks guys.
<?PHP
/* Simple method with direct output */
echo fileselect();
/* Slightly more advanced with a "delayed" output */
$string .= fileselect();
$string .= "\n";
$string .= fileselect();
echo $string;
/* Use function "inside" a string, direct output */
echo "someting ". fileselect() ." and something else";
?>
--
//Aho
[Back to original message]
|