Re: Don't want variable within function parameter to be parsed
| From: | Steven Werby | Date: | Sun, 10 Dec 2000 01:12:13 +0000 |
| Subject: | Re: Don't want variable within function parameter to be parsed | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-29522@lists.php.net to get a copy of this message | ||
Solved my own problem. Modified one line, added another. See below.
On Sat, 9 Dec 2000, Steven Werby wrote:
<snip>
> <?php
> function print_output()
> {
> $user_id = 104;
</snip>
// Added this line before calling $this->url.
eval( "\$this->url = \"$this->url\";");
<snip>
> $html = $this->url;
</snip>
<snip>
> $Output->set_url( "page.html?user_id=$user_id" );
</snip>
// Notice single quotes vs. double quotes previously.
$Output->set_url( 'page.html?user_id=$user_id' );
--
Steven Werby {steven-lists@befriend.com}