56 users online (0 members and 56 guests)  


  Results 1 to 4 of 4

Related

  1. #1
    kennyharrill's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    2

    Question re: built in search engine on html page

    Our website utilizes a built in search engine. This is for a company that manufactures heat transfers. Visitors to our site are able to search our various transfers by part code - some of the codes are three digits and some are four or five. We would like to have a "block" in place in our search engine where the three digit partcodes can't be accessed - in other words, we want to make the minimum length of the search string four or more. I have cut and pasted our search form code below - please note that the URL in action parameter is not our site. Any help that anyone can give me is deeply appreciated.
    Code:
     
    <FORM NAME="Search" METHOD="post" ACTION="http://www.mysite.com/pgi-KeyWordSearch5">
    <INPUT NAME="ListAUX1" TYPE="hidden" VALUE="A">
    <INPUT NAME="DATA" TYPE="text" VALUE="" SIZE="15">
    <!--<INPUT NAME="Go" TYPE="image" VALUE="submit" SRC="images/submit.gif" ALT="GO!" align="texttop">-->
    <A HREF="javascript:document.Search.submit()" onMouseOut="MM_nbGroup('out');" onMouseOver="MM_nbGroup('over','send','images/submit2.gif','images/submit.gif',1)" onClick="MM_nbGroup('down','navbar1','send','images/submit.gif',1)"><IMG SRC="images/submit.gif" BORDER="0" name="send" align="absmiddle"></A>
    <INPUT NAME="CONT" TYPE="hidden" VALUE="Contains">
    <INPUT NAME="ADDITIVE" TYPE="hidden" VALUE="BANDC1">
    <INPUT NAME="COLUMNS" TYPE="hidden" VALUE="3">
    <INPUT NAME="CATCODE" TYPE="hidden" VALUE="">
    <INPUT NAME="SUBCATCODE" TYPE="hidden" VALUE="">
    <INPUT NAME="SEARCHMORE" TYPE="hidden" VALUE="Search Results,2,158,#,blkt,&,158,#,otherdo,&,158,#,otherdg,&,158,#,embm,&,158,#,embw,&,158,#,emby,&,158,#,embwwh,&,158,#,embmwh,&,158,#,embywh,&,158,#,otherdowh,&,158,#,otherdgwh,&,158,#,baby,&,158,#,babywh,&,158,#,blktwh,&,158,#,blnkwh,&,158,#,pants">
    </FORM>
    Last edited by HTML; 10-10-2005 at 01:54 PM.

  2. #2
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: Question re: built in search engine on html page

    What type of script (php,asp,perl) do you utilize to perform the script? I will move the thread to the appropriate forum once I know and hopefully you can get some help.
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  3. #3
    kennyharrill's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2005
    Posts
    2

    Re: Question re: built in search engine on html page

    Thanks, Dave. This is from a php script

  4. #4
    ALL's Avatar
    Super Dooper Nerd

    Status
    Offline
    Join Date
    Feb 2005
    Location
    localhost
    Posts
    382

    Re: Question re: built in search engine on html page

    simple, just add this at the beggining of your php script:
    PHP Code:
    if(strlen($_POST['DATA']) < 4){
    //put the error html here
    }else{
    //put the search code here

    i dont know your code, so i cant write it all out for you, but that should be what you are looking for!



Tags for this Thread