I've been having a really tough time fixing an error, where I submit an html form and take the information from that form and use it in a php script where I save it to a file. In chrome and Firefox, it saves the data fine, no problems. However, in IE, either the forms submits weird, or the php messes up, where it repeats saving the data 10 times. So instead of "Test", I'm getting "TestTestTestTestTest..ect"
Does anybody know why this would occur in IE only?
The general code (not all included.. however, it's mostly just repeats of this):
<form id="form1" action="createProf.php" method="post">
<input type="radio" style="position:absolute; top: 218px; left: 560px;" id="female" name="gender" value="female"/>
<input type="radio" style="position:absolute; top: 187px; left: 560px;" id="male" name="gender" value="male"/>
<input type="text" id="year" name="year" size="4" value="Year" style="position:absolute; top: 416px; left: 640px;"/>
</form>
//php code//
$gender = htmlspecialchars($_POST['gender']);
$acc = fopen($file, 'r') or die("cant open file");
//other reading code and other stuff ehre
fwrite($acc, $data);
fclose($acc);
Thanks, and if more is needed to help, I'm willing to add more on.