Evaluating Variables at the correct time
| From: | Ben Wrigley | Date: | Tue, 30 Dec 2003 12:18:53 +0000 |
| Subject: | Evaluating Variables at the correct time | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-173479@lists.php.net to get a copy of this message | ||
Hi There,
I'm a bit of a newbie here I'm afraid so I'm sorry if this is an obvious
question.
I have a script which read includes an html file. The html makes a call
so a function in the main script. This call passes a string which
includes variables i.e. : <td>$title</td><td>$name</td>
in the function that gets called the variables $title and $name get
populated with values and then the script echos the html string to the
client.
The problem is that the variables in the html string get evaluated at
the point it is passed into the function not as the point it is echoed.
Can anyone help?
Thanks
Ben Wrigley