我在锚内使用一个按钮
代码
<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" />
这个代码不能在IE中工作。
或者,您可以将onclick
属性添加到按钮中以重定向,而不是将其包装在link:
<input type="button" onclick = "window.location = '<?php echo $INCLUDE_ROOT_DIRECTORY. 'mailer_add_contents.php'; ?>'" />