View Full Version : email from processing-layout
03-17-2004, 06:59 PM
Hello, I created a html employee application form, that emails the results to me. Does anyone have a script that processes the data typed in, into the same format as the application?
Right now it sends me all the data in one row.
We need the info sent to us to look just like the application format.
03-17-2004, 07:05 PM
You're going to need something server-side for that.
03-17-2004, 07:39 PM
As far as I know Choopernickel is right.
You'd need a server-side language (like PHP, JSP, ASP, or something....). Your webform would post the form to some server-side script, say process_form.php.
This process_form.php would in turn generate that same webform, but instead of creating blank input fields, you'd set the values to the incoming values (ie. in PHP from the $_POST array).
You would store this generated webform in a variable, and then use the server's email routine to send the email with this form as the body of the email.
That's the idea behind it.
The other method you may want to consider, and it depends on your mail client, is that you can write a script such that when the subject is of a certain heading (or however u identify these emails), you would alter the body of the message to separate that one line into separate lines.
I don't know much about mail servers, but if you've got one, you may be able to throw the script on there...?
The method you choose will probably depend on your mail client/server, or ability to use server-side scripts.
Hope that helps,
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.