Variable variables – Get parameters of HTML elements which generated with a PHP for loop

Posted by Shek on November 30, 2011 under PHP | 3 Comments to Read

This post is the continuation of the post “Create a HTML form with PHP for loop and table”. It mainly focus on how to catch the HTML elements’ data generated from a PHP of a HTML form, it also talks about PHP Variable variables.

Read more of this article »

Generate random password with PHP rand function

Posted by Shek on May 8, 2011 under PHP | Be the First to Comment

In system designing, there are many cases which requires user to login in order to access some restricted areas. And so, we might need to generate an initial password for the user. Here I am going to show you how to generate random passwords with integers

Read more of this article »

Using XML elements as HTML form drop down menu items with PHP

Posted by Shek on April 30, 2011 under PHP, XML | 2 Comments to Read

In my previous post, I have mentioned about using MySQL data as drop down menu items. Here in this post, I am going to show how to use XML elements as HTML form drop down menu items, by doing so, we could use the XML file as a configuration file.

Read more of this article »

Create multiple HTML tables with PHP for loop

Posted by Shek on June 22, 2010 under PHP | Be the First to Comment

Editor’s note: To create one HTML table is easy, but to create multiple HTML tables, We have to copy and paste the code many times. However we could do the job with a PHP for loop.
Read more of this article »

Display all field (column) names of a table in MySQL database

Posted by Shek on November 23, 2008 under PHP | Be the First to Comment

Editor’s note: I mentioned in my previous post Display data from MySQL with PHP which I demonstrated how to display the data of a row within a table, now I want to demonstrate how to display all field names (column names) of a table within a MySQL database.
Read more of this article »

Create a HTML form with PHP for loop and table

Posted by Shek on May 18, 2008 under PHP | 2 Comments to Read

Editor’s note: To create a HTML form with just a few text fields and a few HTML form elements is easy, but in a stock control system or price input system for example, there might be a need for many text fields and different HTML form elements repeatedly appear in the HTML form. 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.
Read more of this article »