I'm working with a designer who's using images for buttons instead of input type=submit. I can access the variables fine in Firefox, but in IE the continue button works but the edit button doesn't. I changed her buttons to basic input type=submit and everything works. Are there special ways to handle this?
Here's the PHP that works in Firefox but not IE:
if (isset($_POST['continue'])) {
if (($_SESSION['formlist']['indFam']) == "ind") {
echo indFormBuilder($links);
} else if (($_SESSION['formlist']['indFam']) == "fam") {
echo famFormBuilder($links);
}
} else if (isset($_POST['edit']) and ($_POST['typeOfForm'] == "confirm")) {
echo gatherData();
}
Here's the code I got from the designer:
<input type="hidden" name="typeOfForm" value="confirm">
<p>If correct, click<button type="submit" name="continue" id="continue"><img src="common/continue.gif" width="63" height="19" border="0"></button><br><br>
If incorrect, click<button type="submit" name="edit" value="edit"><img src="common/edit.gif" width="63" height="19" border="0"></button></p>
If I change the HTML to this, it works in both browsers:
<input type="hidden" name="typeOfForm" value="confirm">
<p><input type="submit" name="continue" id="continue" value="Continue"></p>
<p><input type="submit" name="edit" id="edit" value="Edit"></p>