You are viewing version #9 of a page entitled Login. The page Owner is admin and the last changes were made by admin 13 months ago. There are 489 words in this revision and it has been viewed 881 times.
This page is Protected from any changes.

Click to hide
Contents (hide)

Creating a Custom Login Form

Default Login Page

Note that you are not required to create a custom login page. If you wish to use the program’s default login page (which is template-generated), you can allow users to log in from the following URL on your website:

http://www.yoursite.com/ppSD2/login.php

Custom Login Page

Form Fields

Field Name Type Value[1] Function Required on Form?
username text N/A Allows user to input his/her username Yes
password password N/A Allows user to input his/her password Yes
action hidden login Tells the program that the user is logging in. Yes
url hidden N/A or a Full URL Tells the program where to redirect the user to following login. No
ssg hidden N/A or area ID Tells the program what secure areas to log the user into. No
show_member_cp hidden N/A or Y or N If set to “Y”, any user logging in from this login page will be shown the user control panel. No

Sample Form 1 (Without Forced Redirect)

The following form will allow the program to handle the redirect. For more information on how the program determines where to redirect a user, please see the section below entitled “Program Redirect System”.

<form action="/ppSD2/login.php" method="post">
Username: <input type="text" name="username" value="" />
Password: <input type="password" name="password" value="" />
<input type="hidden" name="action" value="login" />
<input type="hidden" name="url" value="" />
<input type="hidden" name="ssg" value="" />
<input type="hidden" name="show_member_cp" value="" />
<input type="submit" value="Login" />
</form>

Sample Form 2 (With Forced Redirect)

The following form will redirect the user to a specific URL, in this case http://www.yoursite.com/secure_area/custom_start.html

<form action="/ppSD2/login.php" method="post">
Username: <input type="text" name="username" value="" />
Password: <input type="password" name="password" value="" />
<input type="hidden" name="action" value="login" />
<input type="hidden" name="url" value="http://www.yoursite.com/secure_area/custom_start.html" />
<input type="hidden" name="ssg" value="" />
<input type="hidden" name="show_member_cp" value="" />
<input type="submit" value="Login" />
</form>

Login Redirection Rules

Click here for information on how the program determines where a user will be redirected to after login.

[1] Any value listed as “N/A” should be left blank on the actual form

This page last modifed by admin @ 05 August 2009 14:45. Created on 24 May 2009 08:59 Protected Page