HTML form data is pushed into javascript array against a click event and being displayed as well. A function is being used to convert javascript array into PHP array so that it can be inserted into Database using PHP and MySQLi functions.