JS wrote:
Quote:
I have a textbox and a button. Sometimes this textbox will be disabled and
other times it will be enabled. When its disabled I guess its value is
null. |
When it is disabled then its value is whatever its value is.
Quote:
String word = (String)request.getParameter("search"); |
This looks like Java, not JavaScript. You seem to be in the wrong newsgroup.
When a control is disabled it is not a successful control. It won't be
submitted at all. What value your GET/POST parsing library allocates to it
depends on that library, it will be the same value you get if you try to
access any parameter which isn't included in the submitted form data (such
as getParameter("notInTheFormAsIJustMadeItUp").
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is