schwim
19-Apr-2006, 12:46 AM
Hi there,
I'm attempting to set up a multi-page form for a friend that makes wooden signs. He'd like a form that gets all of the required information from the user(which is a lot; board length is calculated from the number of characters they want, whether the edges are routed, Letter and board height). Each of these options changes the price. What I'm trying to do is to set up a form that during the process, would calculate these changes and at the end of the form display a paypal button with the calculated cost being sent in the PayPal link. They get to the end of the form and simply click the payment button and they're done.
To do this, I think I need to be able to run statements on the variables from the previous page(s). I'm wondering if this is possible. I've tried simply printing the variables, and although it works with an html template, it does not in .php.
My question is this: Is there a way to do this with .php templates? IF NOT, could I maybe direct them to a final thank you page in HTML that holds the variables, and then they click a button that takes them to a PHP page that calculates the cost?
I know that's very confusing, but I hope you see what I mean:
They enter their personal info in form page one
FormMail takes over and gets the rest of the information
The final formmail page doesn't say that the process is over, but instead tells them to click this button to calculate the cost
that link takes them to a php page that CAN calculate cost and provide a link to PayPal.
thanks,
json
I'm attempting to set up a multi-page form for a friend that makes wooden signs. He'd like a form that gets all of the required information from the user(which is a lot; board length is calculated from the number of characters they want, whether the edges are routed, Letter and board height). Each of these options changes the price. What I'm trying to do is to set up a form that during the process, would calculate these changes and at the end of the form display a paypal button with the calculated cost being sent in the PayPal link. They get to the end of the form and simply click the payment button and they're done.
To do this, I think I need to be able to run statements on the variables from the previous page(s). I'm wondering if this is possible. I've tried simply printing the variables, and although it works with an html template, it does not in .php.
My question is this: Is there a way to do this with .php templates? IF NOT, could I maybe direct them to a final thank you page in HTML that holds the variables, and then they click a button that takes them to a PHP page that calculates the cost?
I know that's very confusing, but I hope you see what I mean:
They enter their personal info in form page one
FormMail takes over and gets the rest of the information
The final formmail page doesn't say that the process is over, but instead tells them to click this button to calculate the cost
that link takes them to a php page that CAN calculate cost and provide a link to PayPal.
thanks,
json