Hi,
Not sure if this goes in the JavaScript or PHP forum since it includes both, …
I have a MYSQL database that has a couple of tables into which a user needs to do the usual database stuff, CRUD.
I need to create a web page front end form to let all this happen. Should I be doing the form in JavaScript or PHP, or does it matter? As far as I know, only PHP can communicate with the db, so I’m guessing the submit (or update or add etc.) buttons each go to new php page that has the form values posted to it, and it db updates can’t happen once the page is loaded. Can JS run an external php file to do updates w/o loading a new page?
Each button needs a different page, so would JS handle this??
1) What’s the best approach to this?
2) Is there a good but not too complex sample of a php/JS form/db like this?
Thanks!