Functionality to send data via index.php