I searched for a simple script which validates a html-form and if everything is alright submit the form to a php script ... i didn't really find something so here is a simple one of mine

1st - create your form with the js-validation


onsubmit="return k_checkForm(this);"
method="post">
Name:
Number:



2nd - put a validation js somewhere in the html file (preferable in the head section)




3nd - php-script (server.php) here you can access the variables like this

echo $_POST["name"];
echo $_POST["phone"];

Related Posts by Categories



Widget by Hoctro | Jack Book