Jump to content

Using IF statements to display different pages


Tam88

Recommended Posts

Hello,

 

Firstly i will try and explain what i am trying to achieve here today, I am creating a website where users sign up and log in to their account but upon login they have to select a car from a list, now once they have selected the car i want that to be stored in the database and never show that page again. Would using IF statements be a valid way to do this or am i looking in the wrong place?

 

When a user first signs up their car ID will = 0 so if i was to write a code pretty much saying IF car ID=0 then (display the page where they can chose one) Else (go to memberspage) would this be a correct way of going about it.

 

Many Thanks in advance.

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.