Re: Search button



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


.


Quantcast