Hi,
I am new here and plan on becoming active as long as I can. This is gonna be a long post. And I appreciate your time in reading it and hope you can help me.
I have used tectite formail processor
http://www.tectite.com/
This formail script can do almost everything I need it to do. It can do multi-form pages, send out a confirmation email, write to .csv and much more. The one thing it does not do is carry calculations. The web-site offers a computation module for there formail, yet they want 300.00 for it and before my client buys it, they want to see if I can find an alternative or write my own.
What I need it to be able to do is to show a total derived from inputs from the previous forms. The product is a set price, and the only thing that will change the quantity and rush delivery.
I can pass hidden fields from the previous form pages through to the final confirmation page, which is where I need to display a receipt sorta thing for there purchase. Can I use the hidden fields as CONSTANTS since there is no variables in the product price. Can some one help me come up with the coding to display the total based on user selection: The form that I need to get the numbers from are checkboxes asking yes, or no
Here is the site: It does not display right in Ie yet, but I am fixing it so take a look in firefox.(stupid ie hax) Also you can just click thru, The site goes no where and I have no required fields or a confirmation page. YET
http://www.netmdreviews.com/600mg/
I have a basic idea of how I could make it work but not sure if it will. Im not sure if php can get the value for the hidden fields? or if the value from the feilds can be calculated? Clarification?
Example:
On the main forms, have the hidden feilds with there value set to the prices. Transfer them through all the form pages and on the confirmation page and use php to get the values from the hidden fields and calculate the total on that page and sent it to the users email.
(no I cant code that well so this is just a free flow idea.)
these would be constants derived from the hidden fields(if possible)
SHIPPING 6.95
RUSH_DELIVERY 7.95
HEALTHY_START 89.95
EXTRA_BOTTLE 39.95
this would be variable in the script
total 0
and my idea of how to make it work via an if/ else statement
if RUSH_DELIVERY = checked {
total = SHIPPING + RUSH_DELIVERY }
else {
total =SHIPPING
}
if HEALTHY_START = checked {
total = SHIPPING + HEALTHY_START }
else {
total=SHIPPING
}
if RUSH_DELIVERY & HEALTHY_START = checked {
total=SHIPPING + RUSH_DELIVERY+HEALTHY_START }
else {
total=SHIPPING
}
if EXTRA_BOTTLE = checked {
total=SHIPPING + EXTRA_BOTTLE }
else {
SHIPPING = 6.95
}
and so on down the list to use all possible combinations
In Short, Shipping is alway included and if the customer chooses, rush deliver , extra bottle , or healthy start(3 bottles) it adds up the total respectively and displays it?
the confirmation page can be a .php page, so this script could be placed in the page or included.
and the output would be an page with a table with shipping cost
what they selected
and the total.
If you can assist me , I would greatly appreciate it.
Once again sorry for the long post. I need to get this figured out soon, the client is waiting.:queasy: