Not working in IE

Hi

Below the code not working in IE. But firefox working fine. Can anyone

<a href="form.php?cid=1"><input type="button" class="" value="Back" /></a>

Thanks. Works perfectly.

The purpose of a button is to allow you to attach scripted events on to them.

You’re wanting instead to use it to submit information to a page, so a submit button should be used.

Try using an actual form submit button instead:


<form method="get" action="form.php">
    <p>
        <input type="hidden" name="cid" value="1" />
        <input type="submit" value="Back" />
    </p>
</form>

According to the HTML specs, a form is not allowed to contain inline elements. Only contain block-level elements or scripting can be directly inside the form, so that’s a paragraph, or a fieldset, or a div, or a list, or some other type of block-level element.