Re: Search button
- From: "Shelly" <sheldonlg.news@xxxxxxxxxxxxxxxx>
- Date: Fri, 30 Nov 2007 06:38:50 -0500
BootNic wrote:
BootNic <b00tnic@xxxxxxxxx> wrote: news:Xns99F85784EC4CBootNic@
85.214.90.236:
"Shelly" <sheldonlg.news@xxxxxxxxxxxxxxxx> wrote:
news:13kv5o63hg13o18@xxxxxxxxxxxxxxxxxx:
I know this must be simple, but I need a little help as this isn't
my area. I have a search box called searchText and a search button
called searchButton. If a user puts "foo" in the text box and
clicks the search button, I want this to change pages with "foo" as
a parameter. Sort of go to "_the_new_page?param=foo" from the
onclick command. How do I construct that such that it forms that
string and does a window.location with that string? I looked over
the web, but didn't find clear examples.
<form action="/_the_new_page" action="get">
That second action should have been method.
<form action="/_the_new_page" method="get">
[snip]
I need the resulting string that appears on the target page to be:
_the_target_page?type=blah&keyword=foo
I could make the name of the input text field be keyword. What would the
action look like? Would it be
"_the_target_page?type=blah" ?
Would I rather just need to define a hidden field and give it the name
"type" and the value "blah" ?
If this is the case, then I am left with the single problem of the not
having an input button of type submit, but having an image instead.
Shelly
.
- Follow-Ups:
- Re: Search button
- From: Toby A Inkster
- Re: Search button
- References:
- Search button
- From: Shelly
- Re: Search button
- From: BootNic
- Re: Search button
- From: BootNic
- Search button
- Prev by Date: Re: NET-enabling start-tag requires SHORTTAG YES
- Next by Date: Re: affordable website design
- Previous by thread: Re: Search button
- Next by thread: Re: Search button
- Index(es):