On Thu, 2002-03-14 at 13:20, Phil Schwarzmann wrote:
> Why doesn't this work...
>  
> include("index.php?var='$var');
>  
> I want to include a page in my code and send a variable to it but I get
> some funky error.
>  
> THANKS!!

Please read this page carefully, especially the third paragraph and 
Examples 11.3 and 11.5: 

 http://www.php.net/manual/en/function.include.php

Hopefully that's help clear it up.

Essentially, you should be doing this:

  $var = 'someval';
  include('index.php');


Hope this helps,

Torben

-- 
 Torben Wilson <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


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

Reply via email to