January 21, 201214 yr Hi, I want to create a website with 2 logins. I am making a wedding website. There are two types of quests that are coming, those that are invited to the ceremony/recepetion and those that are only invited to reception. So a guest would login with a given username and password which would forward them to a RVSP page for either ceremony/reception or just reception depending upon the username and password they entered. Has anyone any example of code that I could use to get the ball rolling so to speak. I will most likely need a PHP script and mysql which I have. Any help would be appreciated Thanks Edited January 21, 201214 yr by mawwty
January 21, 201214 yr I cannot give you a script for this but a few things to do: Set up a column in the users table called ceremony and use Boolean for the type (0 or 1 where 0=false and 1=true) When people login select the value of ceremony when you check their login details Use the value of ceremony (0 or 1) to redirect to the correct area / page as required and if necessary set a session variable based on whether they are invited to the ceremony of not (if you will need to retain this information through various pages of the RSVP)
January 21, 201214 yr Maybe ask in the PHP forum? I don't think you need 2 logins, you only need to define the guests as type 0 or type 1 and then direct them accordingly a bit like the difference between a general subscription and a premium one.
January 21, 201214 yr Author Hi, I am making a wedding website. There are two types of quests that are coming, those that are invited to the ceremony/recepetion and those that are only invited to reception. So a guest would login with a given username and password which would forward them to a RVSP page for either ceremony/reception or just reception depending upon the username and password they entered. Would anyone have any examples of codes that i could work from to get me started thanks
January 21, 201214 yr This isn't your typcial code request really, so it's not going to be easy to find an example. Basically what you're going to need is to redirect to two different pages based on the login, or save a value in a session, and work off that on one page, changing the content dependant on that value
January 22, 201214 yr I answered this question for you yesterday on another forum - why ask the question again?
Create an account or sign in to comment