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.

Link to comment
Share on other sites

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.