Drake
Drake

Reputation: 3891

html form won't get

I am using a html form to with a get method to submit information to another page

<form name="test" action="gallery.html" method="get">
    <div class="searchbar">
        <div class="tb-artist">
            <input id="artist" type="text" class="tb-artist-a" />
        </div>
        <input type="submit" value="submit" class="searchbutton" />
    </div>
</form>

It visits the gallery page but doesnt append on the information, why doesnt it just work

just figured it out, im using id instead of name

Upvotes: 1

Views: 97

Answers (2)

Konrad Rudolph
Konrad Rudolph

Reputation: 545568

You need to assign a name to your input:

<input id="artist" name="artist" type="text" class="tb-artist-a" />

Upvotes: 1

Quentin
Quentin

Reputation: 943220

<input id="artist" type="text" class="tb-artist-a" /> doesn't have a name so it cannot be a successful control.

Upvotes: 0

Related Questions