Sunday, 11 December 2011

PHP : Welcome To Yuna's Fan Page

Hye...I know what you're thinking right now. You want to tell me that I am a Yuna's Fanatic right?hahaha...
Yes, I am. So I have been designing Yuna's Fan Page to all Yuna Fans.
This is a home page for login session (above) and registration session (below) for a new user.


How to create login session?


a) Type Username - Create a text field (username) - 1
b) Type Password - Create a text field (password) - 2
c) Create Log In button - 3
d) Type "If you are a new user register first." - Highlight register - Click Hyperlink to link to register.php - 4
e) Click database (+) to create a database - Select MySQL Connection 
f) Insert all the information as below - Database (select the database name from phpMyAdmin)
g) Click Test button to test if the connection was successful or not.


 h) Highlight the login form - Server Behaviors (+) - User Authentication - Log In User
i) See the image (below) - Insert and select all the information as below
j) If login succeeds - select the page you want to go - 7 (see below)
k) If login fails - select the page you want to go - 8 (see below)


How to create registration session?
a) Create all the information as above - 1
b) Create a Sign Up button 
c) Highlight the registration form - Server Behaviors (+) - Insert Record (see below) 


d) Select the Connection  from your database - 2
e) Select the table from your database that consist the right field - 3
f) Make sure Columns have a values - 4
g) Select the page you want to go after insert all the information registration - 5

If you're already REGISTER and then LOG IN, you will go to this page....


2 comments: