Validating a Session value
| From: | Aleks Kalynovych | Date: | Sun, 23 Nov 2003 01:54:17 +0000 |
| Subject: | Validating a Session value | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-31701@lists.php.net to get a copy of this message | ||
Hi all,
I am trying to figure out a way to calculate a value based on another value
and then set that value in a session variable.
So, if $session_ValueA <= $100 set $session_fee = $10
Or
If $session_ValueA >$100 and < $499 set $session_fee=$20
Or
If $session_VAlueA >$499 and <$999 set $session_fee=$50
Or something like this., I have to evaluate $session_ValueA to 6 possible
values.
Once this is done, I also would like to be able to calculate a % of
Session_ValueA
As commission… I tried to use If, Else but can’t seem to get it right..
Any suggestions?? Thanks
Aleks