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

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

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 »

Set default text for text field in HTML form

Posted by Shek on under HTML | Be the First to Comment

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

Empty a table in MySQL database with HTML form and PHP

Posted by Shek on under PHP | Be the First to Comment

Editor’s note: In some cases which the user might need to empty a table in the MySQL database. Instead of deleting every record in the MySQL database, you could run a query “truncate table ‘tablename’” to do the job.
Read more of this article »

HTML form in a table

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

Sometimes, you might like to have the HTML looks neat and tidy. A table to hold all of the HTML elements in it would do the job. Here I have created an example to show you a good way to do it.
Read more of this article »

MD5 – insert an encrypted string or password to the MySQL database with HTML form and PHP

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

Editor’s note: In a login system, there are user names and passwords stored in the MySQL database. The passwords are normally stored as strings inside the database. To have a more security way to store the passwords in the database, it is better to store an encrypted version of the password, therefore only the password creator knows what the password is.

MD5 is the encryption technology I like to use because it is very easy to implement and it encrypts a string into a 32-character strings, for reference what MD5 really is, please check Wikipedia-MD5.

Read more of this article »

Page 3 of 612345...Last »