|
WDF Staff
Join Date: April 2004
Location: Cottage Grove, Minnesota
Posts: 3,359
|
Right before this line: // multiple recipients
You would do all of the math using your variables.
Since they are entering the amounts of each bill in the form,
you could use Javascripting to do the totals automatically.
The totals would change each time they enter an amount
in a bill quantity text box.
The final totals would be sent with the form.
Do you really need to have all of the bill quantities emailed,
or just the totals of the three things?
You have them enter a location, so you already know where the
email comes from. You could instead have the employee log-in and
that solves a couple of issues ...
1) You would know the employee name and store location.
2) Anyone else entering the page with your form won't see it
unless they are logged-in. (a bit more secure).
So, you would be looking at a simple PHP script for user log-in & PHP sessions.
You can find those script examples using Google.
========
Then you have the added issue of what happens if the employee submits the
form and then realizes they made a mistake? Do they have to go and type it
all over again and resend? So, you might need a "confirmation page" that the
employee checks before submitting?
All of these questions add more to your script and involve more PHP scripting
than you might think you need. Faxing still looks like a good option to me because
the employee can write down amounts and see everything before they fax.
You may also look into using a PDF system where there is an online PDF form
that has input fields. The employee fills it out and transmits it to your email,
and a copy gets saved on a server. Might be nicer than an online form.
This requires an Adobe PDF writer (somewhat expensive).
EDIT:
Forgot to mention about your HTML.
You need to create a PHP HTML email instead of "plain text".
Use Google to search for: PHP HTML email
.
Last edited by mlseim; December 15 '07 at 10:59 PM.
|