Adi
Adi

Reputation: 4904

HTML button inside the anchor

I m using a button inside anchor

Here is code

<a href="<?php echo $INCLUDE_ROOT_DIRECTORY. 'mailer_add_contents.php'; ?>" >
   <input type="button" value="Add Contents" style="float: right; margin-top: 5px;" class="button_link" />

This code is not working in IE. I m clicking on button but it does not go anywhere.

Upvotes: 0

Views: 1773

Answers (1)

Sarfraz
Sarfraz

Reputation: 382706

Alternatively, you can add onclick attribute to button to redirect rather than wrapping it in link:

<input type="button" onclick = "window.location = '<?php echo $INCLUDE_ROOT_DIRECTORY. 'mailer_add_contents.php'; ?>'" />

Upvotes: 2

Related Questions