Re: [PHP] Passing arguments to the same script

2002-12-02 Thread Marek Kilimajer
se { echo "Main content goes here."; } The only thing that EVER gets displayed is the final else. (Main content goes here.) What am I doing wrong? Once again, the links are in this format: Any ideas? -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: S

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Troy May
Thanks, I got it working by adding "=1" -Original Message- From: Chris Wesley [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 01, 2002 8:08 PM To: 'PHP List' Cc: Troy May Subject: RE: [PHP] Passing arguments to the same script On Sun, 1 Dec 2002, Troy May wrot

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Troy May
Not sure which version, it's my ISP. Adding "=1" to the URL worked though. Thanks! -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Sunday, December 01, 2002 8:08 PM To: 'Troy May'; 'PHP List' Subject: RE: [PHP] Passing argu

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Jonathan Sharp
I think you\'d want to use: if ( $_SERVER[\'QUERY_STRING\'] == \'samples\') { // code } otherwise if you use , set your links as: -js On Sun, 1 Dec 2002 22:38:54 -0500 Holmes wrote: > > > > I\'m sure this is easy, but I\'m drawing a blank. I need to have links > at > > the > > bottom of

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Jonathan Sharp
I think you\'d want to use: if ( $_SERVER[\'QUERY_STRING\'] == \'samples\') { // code } otherwise if you use , set your links as: -js On Sun, 1 Dec 2002 22:38:54 -0500 Holmes wrote: > > > > I\'m sure this is easy, but I\'m drawing a blank. I need to have links > at > > the > > bottom of

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread John W. Holmes
oy May [mailto:[EMAIL PROTECTED]] > Sent: Sunday, December 01, 2002 11:02 PM > To: [EMAIL PROTECTED]; 'PHP List' > Subject: RE: [PHP] Passing arguments to the same script > > Thanks for responding. I think I'm still doing something wrong. Take a > peek: > > if

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Chris Wesley
On Sun, 1 Dec 2002, Troy May wrote: > The only thing that EVER gets displayed is the final else. (Main content > goes here.) What am I doing wrong? Once again, the links are in this > format: To get the desired results with the code you posted, you have to give your query string parameter(s)

Re: [PHP] Passing arguments to the same script

2002-12-01 Thread Kyle Gibson
Thanks for responding. I think I'm still doing something wrong. Take a peek: if(isset($_GET['questions'])) { echo "Questions link content will go here"; } elseif(isset($_GET['samples'])) { echo "Samples link content will go here"; } elseif(isset($_GET['rates'])) {

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread Troy May
uot;Main content goes here."; } The only thing that EVER gets displayed is the final else. (Main content goes here.) What am I doing wrong? Once again, the links are in this format: Any ideas? -Original Message- From: John W. Holmes [mailto:[EMAIL PROTECTED]] Sent: Sunday, Decemb

RE: [PHP] Passing arguments to the same script

2002-12-01 Thread John W. Holmes
> I'm sure this is easy, but I'm drawing a blank. I need to have links at > the > bottom of the page that passes arguments to the same script (itself) when > it > gets reloaded. How do we do this? > > I have the links like this now: > > > > How do I determine what is passed? I need to do an

[PHP] Passing arguments to the same script

2002-12-01 Thread Troy May
Hello, I'm sure this is easy, but I'm drawing a blank. I need to have links at the bottom of the page that passes arguments to the same script (itself) when it gets reloaded. How do we do this? I have the links like this now: How do I determine what is passed? I need to do an "if" statement