Log in

View Full Version : I need help with a search form



SpaceCowboy
09-13-2009, 02:39 AM
I haven't a clue really it's been years and I used to frontpage bots (cgi and the like) I only have fastcgi and php installed on my server... The page is an .html style page:


<form action="" method="post" id="form" name="" target="_top">
<div>
<input type="text" value="Searching..." onfocus="if(this.value=='Searching...'){this.value=''}" onblur="if(this.value==''){this.value='Searching...'}" class="inp_1" >
<a href="#" class="fleft" onclick="document.getElementById('form').submit()">
<img src="_images/main_site_images/button-1.gif" alt="" width="24" height="24" ></a> </div>
</form>

Is obviously the search form and the css for the form is:


/*==================forms====================*/
input, select { vertical-align:middle; font-weight:normal;}
img {border:0; vertical-align:top; text-align:left;}

.inp_1 {width:249px; padding:5px 0 7px 10px; border:0px; background:url(_images/input-bg.gif) no-repeat; color:#828175; font-size:11px; float:left; margin-right:4px;}
textarea { width:287px; height:72px; background:#fff; overflow:auto; border-top:1px solid #303030; border-left:1px solid #303030; border-bottom:1px solid #9f9f9f; border-right:1px solid #9f9f9f; padding-left:3px;}

If that in fact really matters much, I suspect not -- anyway, I purchased the template, of course you're pretty much on your own with this (their rules)

I attempted to create a blank template page called search.html to send the results to but it pulls up just a blank page. Can't I have a "div" or something like that on the page for results, or is it best to send the results to a "results page" (the latter is probably the smart way of going about it...

-----Part Two----
If need be I will create a separate post for this question:

I have a url,
http://foo.com/rrr/feeds/kw=network+engineer (as an example). I would like to create a form that would allow users to interact with the keywords(mk=) and then submit the url for results... any help would be greatly appreciated...

kaos
09-13-2009, 02:49 AM
sorry, i'm not very good at that. but i did find this nice search script: http://www.w3schools.com/php/php_ajax_livesearch.asp

SpaceCowboy
09-13-2009, 03:51 AM
Thanks I was just tinkering around with that and am getting a server application era for one reason or another.... created the links.xml, the php and javacripts placed them all in the same folder and nothing... I can browse the php file and come up with a "no suggestions" so I know that is working... Do I need to call ajax.js on the same page?

qikfire
11-24-2009, 07:28 PM
I haven't a clue really it's been years and I used to frontpage bots (cgi and the like) I only have fastcgi and php installed on my server... The page is an .html style page:


<form action="" method="post" id="form" name="" target="_top">
<div>
<input type="text" value="Searching..." onfocus="if(this.value=='Searching...'){this.value=''}" onblur="if(this.value==''){this.value='Searching...'}" class="inp_1" >
<a href="#" class="fleft" onclick="document.getElementById('form').submit()">
<img src="_images/main_site_images/button-1.gif" alt="" width="24" height="24" ></a> </div>
</form>

Is obviously the search form and the css for the form is:


/*==================forms====================*/
input, select { vertical-align:middle; font-weight:normal;}
img {border:0; vertical-align:top; text-align:left;}

.inp_1 {width:249px; padding:5px 0 7px 10px; border:0px; background:url(_images/input-bg.gif) no-repeat; color:#828175; font-size:11px; float:left; margin-right:4px;}
textarea { width:287px; height:72px; background:#fff; overflow:auto; border-top:1px solid #303030; border-left:1px solid #303030; border-bottom:1px solid #9f9f9f; border-right:1px solid #9f9f9f; padding-left:3px;}

If that in fact really matters much, I suspect not -- anyway, I purchased the template, of course you're pretty much on your own with this (their rules)

I attempted to create a blank template page called search.html to send the results to but it pulls up just a blank page. Can't I have a "div" or something like that on the page for results, or is it best to send the results to a "results page" (the latter is probably the smart way of going about it...

-----Part Two----
If need be I will create a separate post for this question:

I have a url,
http://foo.com/rrr/feeds/kw=network+engineer (as an example). I would like to create a form that would allow users to interact with the keywords(mk=) and then submit the url for results... any help would be greatly appreciated...
try the ZOOM SEARCH ENGINE... Its free and can search up to 50 pages of your website by visitor using keywords..... you can upgrade..

http://www.wrensoft.com/zoom

Qikfire