PHP populate input fields

+1 Tatrasiel R · July 17, 2015
Hey everyone. I have a page that has a load button and some input fields and right now I have the page save the inputs to database and save an ID number in a text box to the left.

I want to be able to have the database search an item in the text box and load the items from the database into the input fields.

The program is a ticket maker and I have it saving the input data I would just like it to have a load button that will load all the proper parameters from a search into the input fields again.

I can provide code just this is a project that I took from a company that wasn't even using HTML 5 (awful code!) when they started it.....

I am trying to re-write the code in PHP and HTML  with Mysql as the database.


Post a Reply


Oldest  Newest  Rating
0 Siamon Hasan · July 18, 2015
Take a look at - >  then check 
add_sale.php,ajax.php and js file. you will find what you looking for.
0 Tatrasiel R · July 18, 2015
Thanks for the reply. I will look at this when I get home.
  • 1

HTML / CSS / Web Design


Discuss, share, ask, learn and teach HTML5 and CSS3.