Welcome visitor
* Login
* Register
It is currently May 24th, 2019, 5:06 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Read and save a submitted form
PostPosted: January 23rd, 2010, 2:50 am 

Posts: 12
How can I read what the user has submitted on a form and then save that info on my hard drive?

I'm kind of new on all this so any help is highly appreciated!


Top
 Profile  
 
  Re: Read and save a submitted form
PostPosted: January 23rd, 2010, 3:44 am 
User avatar

Posts: 63
The form tag is something like this:
<form name="form" action="form.php" method="post">
<input name="field1">
</form>

On the previous example "form.php" is the action file, it is what will read your form. It need to be coded with a server side language and is ran from the server.
<?php
extract($_POST);
echo $field1;
?>


To save the data on your hard disk you will need to save it on the server first, and then you can download the file to your computer.

To create a file with the data retrieved from a form, you will also need a PHP file:
http://www.scriptingok.com/forum/t5_964-Create-a-file-from-a-textarea
Post again if you need more help.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron