Web Design Forum: Creating a website with Multiple Logins Help - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Creating a website with Multiple Logins Help Rate Topic: -----

#1 User is offline   mawwty 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 21-January 12
  • Reputation: 0

Posted 21 January 2012 - 02:45 AM

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

This post has been edited by mawwty: 21 January 2012 - 02:47 AM

0

#2 User is offline   simplypixie 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 23-November 11
  • Reputation: 11
  • Gender:Female
  • Location:Shropshire
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 21 January 2012 - 07:12 AM

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)

1

#3 User is offline   mantis 

  • Dedicated Member
  • PipPip
  • Group: Members
  • Posts: 201
  • Joined: 29-May 11
  • Reputation: 5
  • Gender:Female
  • Location:Oooh la la land
  • Experience:Intermediate
  • Area of Expertise:Designer

Posted 21 January 2012 - 08:43 PM

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.
0

#4 User is offline   mawwty 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 21-January 12
  • Reputation: 0

Posted 21 January 2012 - 10:38 PM

thanks for suggestions shall try php form
0

#5 User is offline   mawwty 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 7
  • Joined: 21-January 12
  • Reputation: 0

Posted 21 January 2012 - 10:41 PM

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
0

#6 User is online   Jay Gilford 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,105
  • Joined: 11-October 09
  • Reputation: 185
  • Gender:Male
  • Experience:Web Guru
  • Area of Expertise:Web Developer

Posted 21 January 2012 - 11:11 PM

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
0

#7 User is offline   simplypixie 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 62
  • Joined: 23-November 11
  • Reputation: 11
  • Gender:Female
  • Location:Shropshire
  • Experience:Intermediate
  • Area of Expertise:Web Developer

Posted 22 January 2012 - 07:04 AM

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

#8 User is online   Renaissance-Design 

  • Available for custom WordPress work
  • View blog
  • Group: Moderators
  • Posts: 3,595
  • Joined: 12-August 10
  • Reputation: 559
  • Gender:Male
  • Location:South Wales
  • Experience:Web Guru
  • Area of Expertise:Designer/Coder

Posted 22 January 2012 - 11:01 AM

Threads merged. FYI, simplypixie's solution is correct.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users