Board index   FAQ   Search  
Register  Login
Board index Web Development Forums HTML Forum

Search Form Not Working

HTML coding, Hypertext Markup Language, Learn HTML tags, discussions and help.

Search Form Not Working

Postby William » Tue Apr 26, 2011 5:05 am

Hi everyone! So I need some help with a search form. Here is the code I have so far...
HTML Code:

Code: Select all
<form action="/audio/index.php?search=" id="" method="post">
        <input type="hidden" name="action" value="search" />
   
        <div class="content_front">

            <div class="blue_box">
                <input type="text" name="q" value="" class="text" /><input type="image" src="/btn-search_go.gif" name="" value="" class="submit" />


It searches, it pops open the /audio/index.php?search= page but doesn't show the actual search. It should open /audio/index.php?search=SEARCH TERM but it leaves out search term. Anyone have a suggestion?
William
 
Posts: 897
Joined: Tue Dec 21, 2010 12:47 pm

Re: Search Form Not Working

Postby Petrix » Tue Apr 26, 2011 5:05 am

Make the following changes:

Textbox name should be search

For the form tag action="/audio/index.php" and method="get"
Petrix
 
Posts: 1989
Joined: Thu Jan 06, 2011 11:19 am


Return to HTML Forum

Who is online

Users browsing this forum: anxeqdyq29, bloowsgymbosy, cbhwftqb65, cjkthrzc64, dloyohuipuoy, enpfhwnw16, gjdiwrznd, hdrwbjro39, Hectorgype, hiwdwbpll, hvrcxuwn14, Jailiaserse, jrlsvsbz40, kaocqhbr17, kbmlcugfx, ljdedseyrojcd, ljdwefdsyrocww, ljdwefdsyrodkb, ljdwefdsyrofca, ljdwefdsyrofsj, ljdwefdsyroido, ljdwefdsyroiwz, ljdwefdsyrojth, ljdwefdsyrojwu, ljdwefdsyrojze, ljdwefdsyroknj, ljdwefdsyrokxs, ljdwefdsyromix, ljdwefdsyronfk, ljdwefdsyroopi, ljdwefdsyropio, ljdwefdsyroqzc, ljdwefdsyrorak, ljdwefdsyrotbr, ljdwefdsyrovbz, ljdwefdsyrowav, ljdwefdsyrozde, ljdwefdsyrozib, lmoulunx83, mansawnTync, mbkfzvbwl, nyhtggdcqy, nyhtggdjwa, nyhtggdwzv, ojkhhhoewm, ojkhhhotoh, ojkhhhotoi, oqwtczmj93, orerfummold, OrewEscaserem, pacdffgsvdrade, pacdffgsvdrams, pacdffgsvdratl, pacdffgsvdrbtx, pacdffgsvdrcco, pacdffgsvdrcgk, pacdffgsvdrcxx, pacdffgsvdrerl, pacdffgsvdrexf, pacdffgsvdrfom, pacdffgsvdrfsr, pacdffgsvdrgvz, pacdffgsvdrldq, pacdffgsvdrlye, pacdffgsvdrmgt, pacdffgsvdrmrb, pacdffgsvdrngu, pacdffgsvdrngz, pacdffgsvdrniy, pacdffgsvdrohv, pacdffgsvdrouo, pacdffgsvdrqhd, pacdffgsvdrqnx, pacdffgsvdrqxa, pacdffgsvdrscc, pacdffgsvdrstv, pacdffgsvdrunp, pacdffgsvdrwhm, pacdffgsvdrwmv, pacdffgsvdrwqf, pacdffgsvdryqw, pacdffgsvdrzzg, pasyaermpp, pletcheruei, prpjswtg02, qfwnbwyl70, qmypceiy96, QsWPVhjptH, RoobreKer, rvrbqdlv56, Skebouromobog, sqelzqjj77, Tapvaxorgarry, tkkhwgar53, TxXIZncmfW, ubsrqgujs, vyhlyxxd13, wikbxzou19ipzubgrj93, ybajkvsdp, zenvnkpz49 and 63 guests

cron