WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

How To
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Email HTML Form Data

Keywords: 	  How to Email HTML Form Data

Question:

What I really hope is a simple problem. I have a group of forms on our intranet - and use webbatch to grab the info and send it to xxxx via email. Works like a charm. Now, I'm being asked to send the filled in form -html style, instead of just the data. How do I do this? I know just enough about html to be dangerous - but not real good...

As always, thanks for all your help.

Answer:

You would need to recreate form, but replace the appropriate fields with the data. It will probably require some serious parsing.

Basically you would write another script that got all the form variables and then recreated an HTML file to send. The original form that the data is coming from can provide you with almost all the HTML you need - almost. What you will have to do is change the editboxes and other form elements to plain text that display the values. It would be easiest to format if everything was in a table. For instance a form like...









Name:
Age


...could become...









Name: YourName
Age 30



You would use FileWrite to create the HTML and then send the file as an attachment, or you could probably do it in the body of the e-mail depending on how you are sending the e-mail.


Article ID:   W15511
File Created: 2003:05:13:11:28:26
Last Updated: 2003:05:13:11:28:26