can i include this

<?
require('inc_rate.php');
getComments("1");
submitComments("1","$PHP_SELF");
?>

in a php file but display at certain location at the html file.
i tried it to paste the way it was but gave me an error
so i did like this

require('inc_rate.php');
getComments("1");
submitComments("1","$PHP_SELF");

it worked but cannot displat it on the page where i want it. what would i do so it displays the action at the place i want it.

many thanks

without the rest of the code inc_rate.php so that anyone can find what the functions getcomments() and submitcomments() is supposed to do, its a little difficult
post the code

thank you for your response
the code is attached

first pass
inc_rate.php must be contains a lot of <header> processing

try at the top of the code

<?php require('inc_rate.php'); ?>

then your page
and at the location you want the response

<?php getComments("1");
submitComments("1","$PHP_SELF"); ?>

havent yet read through all the include file,
which also has other includes in it, real spaghetti code,

i get this error

Fatal error: Call to undefined function getcomments() ........
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.