How do i add a search function to my site. Does anyone have a code in html? edit: if i add the google search function to my site its going to look abit akward. Can i change it and jsut keep the code
<form method = 'post' action = 'xxx.com'> Search: <input type = 'text' name = 'searchbox'><br> <input type = 'submit'> <form> Code (markup): Something like that. Then you need something handle the post variables.
um you know where it says 'post' action = 'xxx.com'> Code (markup): what do i replace it with and what do you meen by variables. rusty on my html abit Edit: how do i actualy make it work? How do i make it search and how do i make do all the thigns that a search button would do. If i put in the whole code it makes my template jump like crazy. but if remove this part its all good 'post' action = 'xxx.com'> Code (markup): how would i fix this
Change the 'xxx.com' to the website you want to go to once the submit button is pressed. The 'post variable' I was referring to would be the search term that the user entered. I was just saying that you'd need another programming language to do anything of meaning with it (ie PHP, etc).
ok if put this in Search: <input type = 'text' name = 'searchbox'><br> <input type = 'submit'> <form> Code (markup): What else or what scrpt do i have to put it for this search box to work becouse i have googled alot of stuff and it all doesent work
this is a little more than what you're asking for, but I've had great results with this search script... http://www.xav.com/scripts/search/ It's a cgi script, so requires an install, but if you can't or don't want to do it yourself they've got an automated install that you can perform from there. After it's installed it gives you the HTML that you need to place in your pages...
Could i jsut add gogole search change some html and make it only searchable on my site . could i do that or is it bracking somesort of google copyright laws? <!-- SiteSearch Google --> <FORM method=GET action="http://www.google.com/search"> <input type=hidden name=ie value=UTF-8> <input type=hidden name=oe value=UTF-8> <TABLE bgcolor="#FFFFFF"><tr><td> <A HREF="http://www.google.com/"> <IMG SRC="http://www.google.com/logos/Logo_40wht.gif" border="0" ALT="Google"></A> </td> <td> <INPUT TYPE=text name=q size=31 maxlength=255 value=""> <INPUT type=submit name=btnG VALUE="Google Search"> <font size=-1> <input type=hidden name=domains value="YOUR DOMAIN NAME"><br><input type=radio name=sitesearch value=""> WWW <input type=radio name=sitesearch value="YOUR DOMAIN NAME" checked> YOUR DOMAIN NAME <br> </font> </td></tr></TABLE> </FORM> <!-- SiteSearch Google --> Code (markup):