I think you mean that you want to display the total as text but have the total on the 
form hidden so they can't edit it (and give themselves a discount), you can  use a 
hidden form field, sessions or cookies.

<input type="hidden" value="xxxx" name="total">


Paul Roberts
[EMAIL PROTECTED]
++++++++++++++++++++++++

----- Original Message ----- 
From: "wm" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 07, 2002 1:36 AM
Subject: [PHP] secure form handling


> hi,
> 
> i'm fairly new to this.
> 
> what i want to do is use a form so the user can specify a few different
> choices
> of things they want to buy. maybe a few radio buttons with dollar
> amounts and
> then possibly a couple of quantity fields for items.
> 
> this can then be passed to a script and total added up etc. and the user
> 
> can input
> their billing data. what i don't want is for the user to be able to see
> the amount of
> the transaction in the source code in a hidden field.
> 
> how do i hide this data while still passing it to the credit card script
> 
> along with all
> the other info?
> 
> thanks.
> 
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 


Reply via email to