updated index.php with more form information and mainphp.js redo