Use of database into an HTML file?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Use of database into an HTML file??

Any know how to integrate a database into an html form file via any method? JavaScript verification for forms as well as searching for related data is almost necessary for a good form website so if we have a predefined database that helps with searching as well as other things any one know how do that?

27th Oct 2016, 7:17 PM
Meet Sanghvi
Meet Sanghvi - avatar
6 Answers
+ 4
I'm not sure if this will answer your question but using php, you can.. example In a form, add a POST method and 'action' it to your server using php code..
27th Oct 2016, 7:46 PM
Adam Salehe
Adam Salehe - avatar
+ 3
hmmm, then try javascript, I didnt read much on it, but I saw there is a way, please check, and if you find a way, please inform me also, thanks..
29th Oct 2016, 10:59 AM
Adam Salehe
Adam Salehe - avatar
+ 2
php helps but it's static (stays as predefined, values can't changed in the php file) i need it to be dynamic(where the values can be changed if changes are made on website.
29th Oct 2016, 9:50 AM
Meet Sanghvi
Meet Sanghvi - avatar
+ 2
JavaScript doesn't or isnt purely used as database i agree it can be used via function() method but then sometimes method can increase difficulty in accessing the data and/or changing it currently i m using JavaScript as my database for my ticket booking website.
29th Oct 2016, 1:22 PM
Meet Sanghvi
Meet Sanghvi - avatar
+ 1
I see, ok, i'll check for other alternatives..
29th Oct 2016, 1:26 PM
Adam Salehe
Adam Salehe - avatar
0
sure thanks😊☺️
29th Oct 2016, 1:26 PM
Meet Sanghvi
Meet Sanghvi - avatar