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?
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"
Posts: 1989
Joined: Thu Jan 06, 2011 11:19 am

Return to HTML Forum

Who is online

Users browsing this forum: Corwynmer, DonaldCits, Fabiobus, Gonzalessoig, Goosehity, KaffupEs, MariusKa, Nemrokagew, PhilHait, Sulfockma, TranoNeds, UgolfGavy, Xardasbift and 6 guests