LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-05-2005, 12:41 PM   #1
dubya
Member
 
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Rep: Reputation: 30
Passing SSI variables between pages


Hi,

I am experienced with using PHP to create dynamic pages and in the past have created one menu page that includes files below the menu. When I want to go to a different page, I usually have a link to the same page with a query string that specifies the file to include, then get that variable from the query string to include it.

I am now working with server side includes to create dynamic pages since this is all my host provides (that anc CGI support). I know how to set variables when a page is loaded, but what I want to know is how to something like I described above.

Any help would be appreciated and if you need more details, please let me know. Thanks in advance.
 
Old 07-05-2005, 01:36 PM   #2
nixcraft
Member
 
Registered: Nov 2004
Location: BIOS
Distribution: RHEL3.0, FreeBSD 5.x, Debian 3.x, Soaris x86 v10
Posts: 379

Rep: Reputation: 30
You can pass them using:

path/to/url.php?a=<!--#echo var="SERVER_NAME" -->

Will be path/to/url.php?a=yourserver.com
 
Old 07-05-2005, 02:06 PM   #3
dubya
Member
 
Registered: Mar 2004
Location: Kitchener, Ontario, Canada
Posts: 386

Original Poster
Rep: Reputation: 30
I'm not sure what that means; I don't have PHP support.

What I want to pass is the path to the files I want to include relative to the main file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Passing variables to an include? Red Squirrel Linux - Software 4 09-23-2005 09:18 PM
PHP passing variables from url to ... latino Programming 3 08-31-2005 06:35 PM
passing variables to sed jjfate Programming 8 07-31-2003 04:15 AM
Passing variables to preg_match patterns? RecoilUK Programming 0 06-23-2003 10:57 PM
Passing variables in PHP???? vous Programming 3 03-20-2003 06:03 AM


All times are GMT -5. The time now is 05:25 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration