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 »

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 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 »

HTML form – Drop down menu with data from MySQL datebase as options

Posted by Shek on May 8, 2008 under PHP | 7 Comments to Read

To create a drop down menu is easy, just use the codes I mentioned in my past post: HTML form element – Drop down menu.

But what if you want to have the data in the MySQL database to be the options of the drop down menu and the options are over 100 or more?? It is very time consuming to create all. But I am going to show you an easy way to do so which by creating a drop down menu involving with PHP and query. The codes are:


Read more of this article »

HTML form element – Drop down menu

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

I often like to use drop down menu for the users to input data because it can restrict the choices and can avoid them from making typo mistakes. It is simple to implement and the codes are:
Read more of this article »