Getting Javascript to talk to PHP

ecpqyjnlvr

New Member
On my page I have a table, and this table has a list of items plus an edit button.When the edit button is clicked, I want to fill the form with the information specific to that entry in the table. All the information is stored in a mySQL database and can be accessed by PHP.I need my javascript on the edit button to get the table row identifier to PHP, which will query the database, returning the correct values and then the javascript needs to receive these entries and fill the form.How do I do this?I can cause a PHP mock "event" by filling a variable and then checking:\[code\]if($variable){ [do query]}\[/code\]But how do I fill that variable from Javascript bearing in mind that the HTML, JS and PHP are nested in the same page?
 
Back
Top