Jump to content

[SOLVED] problem php using IF function & address bar for navigation


Recommended Posts

Maybe stupid question,

 

but my problem is the following:

 

I've build website in php over year ago, I only use the website once a year for an event...

It ran smoothly last year but is giving troubles now..

Problem is that for navigation purposes I define variable in address bar for navigation purposes

eg. in address bar I state "http:\\....\index.php?var=edit"

 

in my index.php i then have

 

if($var == 'edit')

{........

}

 

elseif($var =="view")

{.........

}

 

in the past in ran the code then between the first two brackets when i stated "?var=edit" in the address bar and when I typed ?var="view" in the address bar in ran the code included between the second two brackets....

 

Last year this ran smoothly and I could easily define variables in the address bar for website navigation

for whatever reason this type of navigation does not work anymore, anybody has a clue, why this does not work anymore;

 

I Suspect it to be a change of settings by my webhoster in the php configuration; that's the only thing I can come up with. But due to time management don't have the time to go search the web in detail....

Does anybody have A clue & quick fix for my problem???

 

Thanx

Floris

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.