PHP – get the check box values of HTML form

Posted by Shek on July 30, 2010 under HTML, PHP | Be the First to Comment

Editor’s note: In some cases when you try to create a HTML form for user to input data, you might like to include a set of check boxes for them to input multiple choices, however in order to get the data from a set of check boxes with PHP, I think the easier way is to use array for it, and here in this example I am going to show you how to do so

Read more of this article »

HTML form – submit to a new window

Posted by Shek on July 8, 2008 under HTML | Be the First to Comment

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 »

HTML form – Password Text Field

Posted by Shek on June 17, 2008 under HTML | Be the First to Comment

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 »

Create check box by using the records from MySQL datebase as values

Posted by Shek on June 5, 2008 under PHP | Be the First to Comment

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 »

HTML form element – Check box

Posted by Shek on May 29, 2008 under HTML | Be the First to Comment

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 »

Check ip address of host or website with PHP function and HTML form

Posted by Shek on May 26, 2008 under PHP | Be the First to Comment

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 »

Page 2 of 512345