Send variable in include()

From: Date: Wed, 20 Oct 2004 17:06:01 +0000
Subject: Send variable in include()
Groups: php.general 
Request: Send a blank email to php-general+get-199933@lists.php.net to get a copy of this message
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'; - guestbook.php - $offset gets value "$offset" instead of "0" $option has correct value, "view" How do I write my include so it works? Would appriciate som help. Regards, Pete

« previous php.general (#199933) next »