Forms

I've an HTML file with a Form in it.
I want to extract the data from the
Form and build a new HTML file.
Than I want to send this new file by
E-mail.

Regards, David.
LVL 1
King_DavidAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

vbyuvalCommented:
?
0
robbertCommented:
What programming language do you intend to use?
0
tecbuilderCommented:
You cannot create a file as you may be thinking.  You can only display a page with the new information you want to show in the browser.  This new information can be just about anything.  However, this page does not exist and since the page doesn't exist you can't send it.  The user though can send the page theirself by selecting from the menu File | Send Page.

tec
0
The Ultimate Tool Kit for Technolgy Solution Provi

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy for valuable how-to assets including sample agreements, checklists, flowcharts, and more!

King_DavidAuthor Commented:
I don't know what language to use.
I need suggestions.

I want the end user to fill the Form
press on a Submit button and the filled Form should arrive to me by e-mail.
0
tecbuilderCommented:
Oh ok.  You said you wanted an HTML file and not a form's data.  That's different.  Here again you need to determine if you have access to the server at your site to run a CGI/Perl script or not.  If so, then you should go to http://cgi-resources.com and download one of the many free scripts that will do exactly what you need.  Using a CGI/Perl script is best because the form's data gets formatted nicely for you and the user is not notified that the data is being sent via email.

If you don't have access to the server then you use the method shown below.  The information you are sent doesn't look as nice as when it goes through a CGI/Perl script, but all the information is sent to you.

<FORM method="POST" action="mailto:youremail@addresshere.com" enctype="text/plain">

      Enter your form's fields here.

<input type=submit value="Send it!">
<input type=reset value="Start over">
</FORM>

tec
0
King_DavidAuthor Commented:
I tried: FORM method="POST". . .
What I get by e-mail is a part of the
original html: the <select> tag
errives but the <input> tag doesn't.
0
KennyIT Application ExecutiveCommented:
I think you need to use PERL for this. Do you think you can manage PERL? If so, check out the code here :
http://www.experts-exchange.com/jsp/qShow.jsp?ta=perl&qid=10245859 
There might be some parts missing (my code) but I can post it here for you again.
0
tecbuilderCommented:
The code I sent works because I use it.  Please post a URL to where I can see the actual code you are using.

Note:  Perl will *only* work if you have access to the server.  If you are not sure, then most likely you do not have the necessary access.

tec
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
King_DavidAuthor Commented:
Thanks tecbuilder
For the moment I'll use action="mailto"

My code did not work because not all
the Tags had a name property.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.