PHPSuperBlog.com

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

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. All you have to do is to type in the website address into the function, for example: gethostbyname(www.phpsuperblog.com); and print the result out and then you can see the IP address of www.phpsuperblog.com. To make it more interactive, I have created an example with HTML form which allows the user to input the website for checking the IP address and here it is: Continue Reading →

Get MySQL database records as HTML form text field’s value

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. Continue Reading →

Set default text for text field in HTML form

In some websites, you might discover that some text fields already has text written it when the page loads. Text such as “enter your search here” or “input here”. You might wonder how to do it, is it to do with another programing language such as javascript?? The answer is no, HTML can do the do. Continue Reading →

Create a HTML form with PHP for loop and table

To create a HTML form with just a few text fields and other HTML form elements is easy, but sometimes in a stock control system or price input system for example, there might be a need for many text fields and other different HTML form elements repeatedly appear in the HTML form and they might be more than 100. To type in the codes of all of them will take too much time. Therefore a PHP for loop and a table is good for this task. Continue Reading →

  • Categories

  • Useful Downloads