I'm trying to do the following:
1) ON a php page, calculate fees based upon user entires. I'm calculating it in a javascript function and that is working well. However, I need to take that calculated amount and pass it to a new page on redirect. something like this:
[PHP] <input type="hidden" name="redirect" value="http://www.pagename.com/v3/payment_pg.php?FeeCalcTotal=" & chargetotal& " " >[/PHP]
"chargetotal" is set as a hidden variable like this:
[PHP]<input TYPE="hidden" NAME="chargetotal" value = "">[/PHP]
and I am attempting to set it in my javascipt function like this:
Expand|Select|Wrap|Line Numbers
- FeeCalcTotal = (Witness1Fee + Witness2Fee + Witness3Fee + Witness4Fee)* Discount;
- document.form1.chargetotal.value = FeeCalcTotal
[PHP]<form name="form1" method="post" action="/cgi/formmail">[/PHP]
Then, the redirect happens
Am I doing this correctly? I'm used to doing this sort of thing on web pages that live on our own servers - this is for somebody's individual website.
Thanks in advance for your help!
Happy Friday!
JCC