Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Creating a website with Multiple Logins Help

Featured Replies

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 by mawwty

I cannot give you a script for this but a few things to do:

  1. 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)
  2. When people login select the value of ceremony when you check their login details
  3. 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)

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.

  • 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

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

I answered this question for you yesterday on another forum - why ask the question again?

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.