Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy. This forum is not for asking programming related questions.
but I get sometimes error that the amount variable is not correct , or no error but I see a bank edit box in the paypal checkout page instead of the total I want
Is "document.form.amount.value = <?php echo $FinalTotal + $k_no; ?>;" supposed to calculate the form amount based on the values that the user enters into the form? Coz you can't do that. You need it to be entirely Javascript... no PHP.
Jonah Bron wrote:readonly="true" is what you're looking for. Apply it to document.form.amount. Or, you can use a hidden element instead of a text element.