Monday, March 29, 2010

Reflection on developing a website using PHP (4)--Some basic but useful techniques for designing.

This time, I will reflect some basic and useful techniques. If you want your website to be professional, maybe you can try these in your website.

1. Refresh the page:

When the user fails to register or login, you can show the fail page then refresh the page to let user the login or register again. You also use this technique in other suitable places.

Steps: Go to InsertàHTMLàHead TagsàRefreshà Browse the destination page.

2. Restrict to the page:

If you want users to login before they can access to the information provided in your website, you should restrict users to the page.

Step1: First you should create the page, finish the form, table or text field.

Step2: Go to server behavioràuser Authentitationàchoose “Restrict Access to page”àin the pumping window choose restrict based on “username and password”.

3. Go to the detail page(hyperlink):

If you have a list of items, and you want users to go to another page to get more information, then you can use “go to the detail page”.

Step1: Highlight the part you want to change into a hyperlink.

Step2: Go to server behavior and choose go to the detail page. In the bumping window, choose the page you want users to go and set the URL parameter as “ID”.

4. Update page and Delete page:

We create the update page in order to update users’ data and at the same time, as a admin, we also can delete the information that is not appropriate.

Step1: First you create an update page. Insert the table, form and text field as the registration page.

Step2: Create recordset. (Filter: ID)

Step3: Binding. (Drag the recordset to the proper text field.)

Step4: Insert the update button (or delete button).

Step5: Insert àFormàHidden field (value: id) (Annotation: for ASP.)

Step6: Server BehavioràUpdate record (or delete record).

These are the techniques I found during the review process, I hope I can review it when next time I look through my blog. Next time, I will discuss the problems that I came across during the developing process.

No comments:

Post a Comment