Send variable in include()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux