Retreiving disabled form field information
Moderator: General Moderators
Retreiving disabled form field information
I am creating an orderform where you enter the subtotal and the form calculates your tax, and figures shipping, etc. After if figures theses, it puts that information in individual text boxes and disables them so the user can't mess them up. The problem is that when the fields are disabled, their information does not get posted... how do I fix this?
- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
Ya know, no offense to y'all, because most of the time you're helpful, but a lot of folks around here seem to think that you are helping by telling people that the way they are doing something is wrong.
Don't get me wrong, I appreciate this place a lot, but I can't even count how many times I've asked a question and gotten three answers saying "Well there is no need to answer that question because you're not supposed to do it like that anyway"
For my particular purpose, this is the IDEAL solution... I do not need people to tell my why I am doing it wrong, I just need to know the answer to my question.
I figured it out by myself anyway... thanks though..
Don't get me wrong, I appreciate this place a lot, but I can't even count how many times I've asked a question and gotten three answers saying "Well there is no need to answer that question because you're not supposed to do it like that anyway"
For my particular purpose, this is the IDEAL solution... I do not need people to tell my why I am doing it wrong, I just need to know the answer to my question.
I figured it out by myself anyway... thanks though..
Code: Select all
<input type="text" name="total" onfocus="this.blur()" />- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
Code: Select all
<input type="text" name="foo" readonly="readonly" />- raghavan20
- DevNet Resident
- Posts: 1451
- Joined: Sat Jun 11, 2005 6:57 am
- Location: London, UK
- Contact:
It is common for people not to explain the problem but you cannot expect the people giving reply to read what you are thinking in your mind. Whoever replies here, if they say something like, "why you doing this or why you following this method", that is a clue for you to know that you are doing something different from the normal, standard and time-tested way of doing it.
If you are not satisfied with the answers, it is your responsibility to explain the problem to your best so that we understand why you are following a certain method and this puts us in your place and we could think of some good method to counter the problem.
So, from your next post, do not expect the best reply if you fail to explain the problem and the context of the problem. This is not just for you and this is for anyone who expects the same.
If you are not satisfied with the answers, it is your responsibility to explain the problem to your best so that we understand why you are following a certain method and this puts us in your place and we could think of some good method to counter the problem.
So, from your next post, do not expect the best reply if you fail to explain the problem and the context of the problem. This is not just for you and this is for anyone who expects the same.
Re: Retreiving disabled form field information
Simply Stated...The Ninja Space Goat wrote: The problem is that when the fields are disabled, their information does not get posted... how do I fix this?
Re: Retreiving disabled form field information
The Ninja Space Goat wrote:Simply Stated...The Ninja Space Goat wrote: The problem is that when the fields are disabled, their information does not get posted... how do I fix this?
Simply answered.Wierdan wrote:1. disabled fields are not sent to the server. on the other hand, readonly fields are sent
2. do not trust the user's browser, alway do the math on server.