Hi All,
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.co m/v3/payment_pg.php? FeeCalcTotal=" & chargetotal& " " >[/PHP]
"chargetota l" is set as a hidden variable like this:
[PHP]<input TYPE="hidden" NAME="chargetot al" value = "">[/PHP]
and I am attempting to set it in my javascipt function like this:
Two things are happening when the submit button is pressed. First, this happens:
[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
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.co m/v3/payment_pg.php? FeeCalcTotal=" & chargetotal& " " >[/PHP]
"chargetota l" is set as a hidden variable like this:
[PHP]<input TYPE="hidden" NAME="chargetot al" value = "">[/PHP]
and I am attempting to set it in my javascipt function like this:
Code:
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
Comment