/    Sign up×
Community /Pin to ProfileBookmark

form submit with an image

<form method=”get” action=”view.php”>
<input type=”image” src=”images/search.gif” name=”Search” value=”Quick” />
</form>

When I submit using IE7 i’m not gettnig the value of “Search”.
In firefox, you can see the Search=Quick in the url passed.

Not sure what’s wrong.

Thanks

to post a comment
HTML

5 Comments(s)

Copy linkTweet thisAlerts:
@FangAug 25.2008 — The position of the mouse cursor is returned, not the value: http://www.w3.org/TR/REC-html40/interact/forms.html#input-control-types
Copy linkTweet thisAlerts:
@sc_kingauthorAug 25.2008 — How can I use an image as a submit button and grab the value of the submit button?
Copy linkTweet thisAlerts:
@FangAug 25.2008 — Use the image as the background of a submit button.
Copy linkTweet thisAlerts:
@sc_kingauthorAug 25.2008 — Can you give me an example?

I'm kind of confused how you would use a post submit button with a background image.
Copy linkTweet thisAlerts:
@FangAug 26.2008 — &lt;button type="submit" style="background:url(image.png) no-repeat;"&gt;submit&lt;/button&gt;
×

Success!

Help @sc_king spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.28,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...