Posted by Shek on July 8, 2008 under HTML |
We use HTML form a lot for the user to input data and process those data from a PHP file, but with the standard code of a HTML form:
Read more of this article »
Posted by Shek on June 17, 2008 under HTML |
In some cases such as login system, the HTML form should contains a text field for the user to type in the password. But when the user types in the password, other might see the password from behind the user. To avoid from this happening, a password text field is needed. A password text field works when the user type the password into the text field, every character will turn into *.
Read more of this article »
Posted by Shek on June 5, 2008 under PHP |
Editor’s note: To use the records in the MySQL database as the “values and display text” of the check box is a good idea for the administrator because he/she can add, update or delete check box’s items from the MySQL database, without touching the HTML source.
Read more of this article »
Posted by Shek on May 29, 2008 under HTML |
In HTML form, sometimes you might like to let your user to select only options from only certain elements. This is to avoid them from typing in a value which is not what you want them to input. In this case HTML form element – radio buttons could do the job, but what if in some cases, the user has to select more than one value? Check box is the answer, Here I have created an example to demonstrate the way to create check box:
Read more of this article »
Posted by Shek on May 26, 2008 under PHP |
Editor’s note: There is a function in PHP to check the IP address of a host. It is called “gethostbyname()“. We could use it to check the IP address of a website. Steps are very simple: Put the website address into the function, for example: gethostbyname(www.phpsuperblog.com); and print the result out and then the IP address of the website would appear.
Read more of this article »
Posted by Shek on May 19, 2008 under PHP |
In my past post on explaining how to set the default values of the text field. Now to use the same concept, we could get the records from the MySQL database and place it into the text field as default text. Here I have created an example to show you how to do so. Read more of this article »
Tags: Database, Display, HTML, HTML form, HTML form element, Loop, MySQL, PHP Function, Query, Text-field, While-loop