Jimbo
Jimbo

Reputation: 22984

Internet Explorer 9 Posts Forms Differently?

I've been using buttons for quite some time that are structured as follows:

<button type='submit'><em class='ui-icon ui-icon-disk'/><span>Save</span></button>

The tag then uses the jquery-ui icons to show a disk image for the button. PROBLEM: As soon as users started using IE9, they were getting the server error:

A potentially dangerous Request.QueryString value was detected from the client (<em class=ui-icon)

I can only assume that IE9 is posting the form values differently - does anyone know how to stop the browser submitting certain form elements or how to resolve this issue?

Upvotes: 1

Views: 2415

Answers (2)

Jimbo
Jimbo

Reputation: 22984

PROBLEM SOLVED

If you remove the name attribute from the button element then the form will not submit its value or the value of any element within it.

Upvotes: 1

Razor
Razor

Reputation: 17508

Use <input type="image"> instead.

Upvotes: 0

Related Questions