Re: Send variable in include()
| From: | John Nichel | Date: | Wed, 20 Oct 2004 19:41:25 +0000 |
| Subject: | Re: Send variable in include() | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199937@lists.php.net to get a copy of this message | ||
Pete wrote:
I'm trying to send a variable an include that is recieve from another page: - navi.php- <a href =\"'http://www.example.com/view.php?offset=0\">Test</a> - view.php - I recieve $offset with avalue of "0" nicely, "echo ("$offset");" will show a value. Now a do this: include 'http://www.example.com/guestbook.php?option=view&offset=$offset';Variables do not get parsed inside single quotes. Either quote your include statement with double quotes, or break out of the single quotes and append the variable. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 john@kegworks.com