Skip to main content
September 5, 2006
Question

URL for search form

  • September 5, 2006
  • 1 reply
  • 452 views
Someone wrote a CF file - .cfm. I read his source code. His CF page has a search form.
For example - example1.cfm has a code -
<form action ="serachdata.cfm" method="post">
<b>Quick Search:</b>
<input type="text" name="keyword" >
<input type="image" src="go3.gif" alt="GO" border="0" >
</form>

I don't want to go to the example1.cfm then search for something. ( two steps).

I wonder if there is any way for me to create a link from my page to the example.cfm? with search. ?
I tried to create a link in my page test - https://www.example.com/example1.cfm?keyword=103 but it doesn't work that way.
Is there any way to do that?

Thanks,
Krae
This topic has been closed for replies.

1 reply

Inspiring
September 5, 2006
If you want to do exactly what the form does, change this
https://www.example.com/example1.cfm?keyword=103
to this
https://www.example.com/serachdata.cfm?keyword=103

Assuming https://www.example.com exists and has those files. Also assuming that searchdata.cfm does not contain any code that looks for form variables.
September 5, 2006
I tried https://www.example.com/serachdata.cfm?keyword=103 and came up with all result. Not one result. When I went there and typed 103 in the search field and it came up with one result.

Is there another way? or no way there?

Thanks again,
Krae