Forums
This topic is locked
Formatting Session Variables
Posted 12 Jun 2002 15:57:31
1
has voted
12 Jun 2002 15:57:31 Wil Turrin posted:
Hi,I've got two problems really. First, I have a user enter a value (mileage), then I have the session calculate the epxense (mileageCalc).
That works fine, but when I pass the value into an update form, the value won't get passed onto the database when the user updates. Any thoughts?
And simpler part 2 is how do I format the session variable to show two decimal places?
Replies
Replied 13 Jun 2002 09:25:09
13 Jun 2002 09:25:09 Viktor Farcic replied:
How are you passing that session to form? As hidden field?
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi,
I've got two problems really. First, I have a user enter a value (mileage), then I have the session calculate the epxense (mileageCalc).
That works fine, but when I pass the value into an update form, the value won't get passed onto the database when the user updates. Any thoughts?
And simpler part 2 is how do I format the session variable to show two decimal places?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
www.farcic.com
TalkZone Manager
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
Hi,
I've got two problems really. First, I have a user enter a value (mileage), then I have the session calculate the epxense (mileageCalc).
That works fine, but when I pass the value into an update form, the value won't get passed onto the database when the user updates. Any thoughts?
And simpler part 2 is how do I format the session variable to show two decimal places?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Viktor Farcic
www.farcic.com
TalkZone Manager
Replied 13 Jun 2002 15:30:08
13 Jun 2002 15:30:08 Wil Turrin replied:
Actually, that was the way I was trying to do it, but it turns out it just enters the value of the previous session.
I had entered the same value twice, so it looked like it was working.
Any thoughts on how to do this?
W
I had entered the same value twice, so it looked like it was working.
Any thoughts on how to do this?
W