Jump to content

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


floriske

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

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.