save to server from client<

liunx

Guest
I have a form a user fills out and submits. onSubmit executes a javascript function which stores the variables of the form into a string variable. What I'm trying to do is save this string to the server in a file. Since javascript is client side only, I'm trying to figure out how to use PHP to do this. Any ideas?instead of using a javascript onSubmit, set your form action to "someplace.php" and method to "post".

in there you can pick out the values using the $_POST array.

then you either write those values into a file or into a database.
 
Back
Top