Issue on IE, If I run this script in all browsers except IE, It alert form submitted once, but if I try on IE, it alert twice,
what could be the reason ?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
if(isset($_POST['btn_submit']) && $_POST['btn_submit'] == 'Submit')
{
?>
<script language="javascript">
alert('form submitted');
</script>
<?php
}
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
<body>
<form id="name" method="post">
<input type="file"/>
<input type="submit" name="btn_submit" value="Submit" />
</form>
</body>
</html>
Edit : I tried this code on IE7 and IE8