Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

include with parameter 2

Status
Not open for further replies.

piti

Technical User
Apr 12, 2001
627
SK
i do need to do an include of a php script in another script passing some parameters
like include ('test.php?par1=xy&par2=yz')

the test.php is like a "subpage" on the page that calls it
but as a regular page when called in an uri (
these par1, par2, ... are there to tell the script wheather to render menu, baner, ...

the syntax shown above: include ('test.php?par1=xy&par2=yz') returns error

am i doing anything wrong or the include directive does not support parameters?
and if not how can i do that instead?
 
wow this is it

thank you very very much
 
hi piti,
i hope u have removed the extra semi colon inside the bracket.i dont know but it kept coming..:)

 
well i even did not look at the examples so carefully, your explanation was helpfull enough ;-)
but thanks for the note
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top