Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

PHP User Registration Help Needed

New Here ,
May 28, 2006 May 28, 2006

Copy link to clipboard

Copied

Hello,

I have a page user_registration.php that I've created in DW8 that has a web form prompting the user to create their profile to gain access to the site. The web form fields are user name, password, email address, and registration type.

The registration type is a list/menu that has 3 options. Based on the option chosen, I need the user's login credentials submitted to the MySQL database and for the user to be taken to the corresponding URL (ie. regpage1.php, regpage2.php or regpage3.php).

I'm a newbie to DW8 and PHP and need some assistance on how to accomplish this. Thanks, in advance, for your help.
TOPICS
Server side applications

Views

283
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
May 28, 2006 May 28, 2006

Copy link to clipboard

Copied

Sid Childers wrote:
> The registration type is a list/menu that has 3 options. Based on the option
> chosen, I need the user's login credentials submitted to the MySQL database and
> for the user to be taken to the corresponding URL (ie. regpage1.php,
> regpage2.php or regpage3.php).

Use the Log In User server behavior. Set "If login succeeds, go to" to
the page that requires the higher login credentials. Set "Restrict
access based on" to "Username, password, and access level".

On the page that requires the higher credentials, set "If access denied,
go to" to the page that requires the lower credentials.

--
David Powers
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "Foundation PHP 5 for Flash" (friends of ED)
http://foundationphp.com/

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
May 29, 2006 May 29, 2006

Copy link to clipboard

Copied

LATEST
quote:

Use the Log In User server behavior. Set "If login succeeds, go to" to


Good Morning,

A follow up question related to the Log In User server behavior: Since I have 3 different registration types for which I user could register, would I create 3 separate Log In User server behaviors pointing to each of the 3 registration pages?

This is the parameter I used when identifiying which registration page the sales reps are to go.
salesrep_registration.php?<?php echo $row_Recordset1['UserGroup']; ?>=salesrep

Is this the correct approach? Thanks much for your help.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines