Javascript to PHP

Hi there,

Example follow is what I extracted from, http://stackoverflow.com/questions/12892120/javascript-real-time-calculation , it serves what I need, but may I know what shall I do to make the script below to talk to PHP and write into MYSQL?

Weight (in Kilos)
Height (in Centimeters)

BMI

Provided you’re running on a server that supports PHP and you have MYSQL running.

  1. Create a MySQL database
  2. Create a Table to store the information you want
  3. Add form tags and a submit button to post the data back
  4. When the data is posted back, retrieve the data and insert it into you’re MySQL Table.

Each one of those numbers above is going to be a challenge for you, because it sounds like you haven’t done any real coding before. So you should hit up a few tutorials and if you get stuck, then report back for help.

Sponsor our Newsletter | Privacy Policy | Terms of Service