First thing,
you cannot call a php function like it\'s a javascript function, so that onClick event will not work. php is server-side, javascript is client-side
try using this form tag at the top
<form action=\"save_file.php\" method=\"post\">
and use save_file.php (created by you) to handle all the data that was input.
perhaps you should check the manual for some ideas