I have written a script that works fine in Firefox; however, in IE you can click on a submit button and nothing happens.
Has anyone else ran into this?
Post a large "Get Firefox" banner on your site? 😉
It sounds like more of a client-side problem, but just to make sure, can you post the relevant "code" for the troublesome submit button?
Does it work in Opera?
your code perhaps ? i have a problem like that myself
frames will display in safari but not in IE go figure 😉
here's a sample of the offending code
include("config.php"); if (!$link = mysql_connect ($host, $user, $password)) { echo 'I cannot connect to the database because: ' . mysql_error(); exit; } if (!mysql_select_db ($db, $link)) { echo 'Could not select database' . mysql_error(); exit; } $ticket_id = $_GET['id']; $sql ="SELECT * FROM tickets WHERE ticket_id ='" . $ticket_id . "'"; $result = mysql_query($sql, $link); if (!$result) { echo "DB Error, could not query the database\n"; echo 'MySQL Error: ' . mysql_error(); exit; } else { $row = mysql_fetch_assoc($result); $requestor = $row['ticket_requestor_name']; $requestorlocation = $row['ticket_requestor_location']; $requestordepartment = $row['ticket_requestor_department']; $requestorphone = $row['ticket_requestor_phone_num']; $requestorlogin = $row['ticket_requestor_login_name']; $ticketsubject = $row['ticket_summary']; $ticketlocation = $row['ticket_location']; $ticketcomments = $row['ticket_comments']; $ticketdescription = $row['ticket_description']; $ticketstatus = $row['ticket_status']; $ticketdatecreated = $row['ticket_date_created']; $ticketdateclosed = $row['ticket_date_closed']; $ticketassignedto = $row['ticket_assigned_to']; $tickettagnum = $row['ticket_tag_num']; $ticketwasloanerissued = $row['ticket_loaner_issued']; $ticketloanertagnum = $row['ticket_loaner_tag_num']; $tickettimecreated = $row['ticket_time_created']; $tickettimeclosed = $row['ticket_time_closed']; $ticketdateavailableon = $row['ticket_date_user_available_on']; $tickettimeavailableon = $row['ticket_time_user_available_on']; $ticketlastmodifiedon = $row['ticket_last_modified_on']; $ticketenteredby = $row['ticket_entered_by']; $tickettype = $row['ticket_type']; } ?> <body> <form action="viewopenticket.php" method="GET" name="myform"> <table border="0" width="100%" bgcolor="#CCCCCC" cellspacing="0" cellpadding="5"> <tr> <td style="background:#CCCCCC;" colspan="4" style="background:#CCCCCC;" valign="top"> <img src="ucaheader.gif" width="415px" height="32px" align="left"> <span style="float:right;" >Logged in as <? echo $username; ?> [<a href="logout.php">Logout</a>]</span> </td> </tr> <tr> <td align="center" colspan="4" style="color: #FFFFFF; background: #0090FF;">BearCat Helpdesk Software</td> </tr> <tr> <td colspan="4"> <? if($header == 'normalUserMenu') { include("./headers/normalUserMenuHeader.php"); } elseif($header == 'superUserMenu') { include("./headers/superUserMenuHeader.php"); } ?> </td> </tr> <tr style="background:#0090FF; color: white;"> <td colspan="4"><center>Ticket Number <?echo $ticket_id?></center></td> </tr> <tr> <td colspan="2"><b>Customer Information</b></td> <td colspan="2"><b>Ticket Information</b></td> </tr> <tr> <td width="25%">Name: </td> <td align="left"><?echo $requestor;?></td> <td>Summary</td> <td><?echo $ticketsubject; ?></td> </tr> <tr> <td>Location: </td> <td align="left"><?echo $requestorlocation;?></td> <td>Location of Incident:</td> <td align="left"><? echo $ticketlocation;?></td> </tr> <tr> <td>Department: </td> <td align="left"><? echo $requestordepartment; ?></td> <td>Date/Time Created:</td> <td align="left"><?echo $ticketdatecreated . " "; $time_hour = substr($tickettimecreated, 0, 2); $time_min = substr($tickettimecreated, 3, 2); echo date("g:m A", mktime($time_hour, $time_minute)); ?> </td> </tr> <tr> <td>Phone: </td> <td align="left"><?echo $requestorphone;?></td> <td>Job Type: </td> <td align="left"><? echo $tickettype; ?></td> </tr> <tr> <td>Email: </td> <td align="left"><a href="mailto:<?echo $requestorlogin;?>@uca.edu"><?echo $requestorlogin;?>@uca.edu</a></td> <td>Ticket Status:</td> <td align="left"> <? echo $ticketstatus; ?></td> </tr> <tr> <td colspan="4"><hr> </td> </tr> <tr> <td colspan="4"><b>Additional Ticket Information</b></td> </tr> <tr> <td>Opened By: </td> <td ><? echo $ticketenteredby; ?></td> <td>Assigned To:</td> <td align="left"><? if($ticketassignedto == "zzUnassigned") {echo "Unassigned";} else{echo $ticketassignedto; } ?></td> </tr> <tr> <td>Was a Loaner Issued?:</td> <td align="left"><? echo $ticketwasloanerissued; ?></td> <td>Loaner Tag Number</td> <td ><?echo $ticketloanertagnum; ?></td> </tr> <tr> <td>UCA Tag Number:</td> <td align="left"><? echo $tickettagnum; ?></td> <td>Date/Time Closed:</td> <td align="left"><?echo $ticketdateclosed . " "; if($tickettimeclosed != "") { $time_hour = substr($tickettimeclosed, 0, 2); $time_min = substr($tickettimeclosed, 3, 2); echo date("g:m A", mktime($time_hour, $time_minute)); } ?> </td> </tr> <tr> <td colspan="4"><hr></td> </tr> <tr> <td colspan="2"><b>Description</b></td> <td colspan="2"><b>Resolution Notes</b></td> </tr> <tr> <td colspan="2"> <textarea cols="50" rows="15" name="ticketdescription" readonly="readonly"><?echo $ticketdescription; ?></textarea> </td> <td colspan="2"> <textarea cols="50" rows="15" name="ticketcomments" readonly="readonly"><?echo $ticketcomments; ?></textarea> <input type="hidden" name="ticketprevcomments" value="<? echo $ticketcomments; ?>"> </td> </tr> <tr> <td colspan="4">This ticket was last modified on <? echo $ticketlastmodifiedon; ?> <input type="hidden" value="<? echo date('His'); ?>" name="ticketopenedattime"> <input type="hidden" value="<? echo $tickettimestamp; ?>" name="tickettimestamp"> </td> </tr> <tr> <td colspan="3"> <input type="hidden" name="ticketid" value="<?echo $_GET['id']?>"></td> <td align="right"><input type="submit" value="Edit Ticket"></td> </tr> </table> </form> <? } else {} ?>
include("config.php");
if (!$link = mysql_connect ($host, $user, $password)) { echo 'I cannot connect to the database because: ' . mysql_error(); exit; } if (!mysql_select_db ($db, $link)) { echo 'Could not select database' . mysql_error(); exit; } $ticket_id = $_GET['id']; $sql ="SELECT * FROM tickets WHERE ticket_id ='" . $ticket_id . "'"; $result = mysql_query($sql, $link); if (!$result) { echo "DB Error, could not query the database\n"; echo 'MySQL Error: ' . mysql_error(); exit; } else { $row = mysql_fetch_assoc($result); $requestor = $row['ticket_requestor_name']; $requestorlocation = $row['ticket_requestor_location']; $requestordepartment = $row['ticket_requestor_department']; $requestorphone = $row['ticket_requestor_phone_num']; $requestorlogin = $row['ticket_requestor_login_name']; $ticketsubject = $row['ticket_summary']; $ticketlocation = $row['ticket_location']; $ticketcomments = $row['ticket_comments']; $ticketdescription = $row['ticket_description']; $ticketstatus = $row['ticket_status']; $ticketdatecreated = $row['ticket_date_created']; $ticketdateclosed = $row['ticket_date_closed']; $ticketassignedto = $row['ticket_assigned_to']; $tickettagnum = $row['ticket_tag_num']; $ticketwasloanerissued = $row['ticket_loaner_issued']; $ticketloanertagnum = $row['ticket_loaner_tag_num']; $tickettimecreated = $row['ticket_time_created']; $tickettimeclosed = $row['ticket_time_closed']; $ticketdateavailableon = $row['ticket_date_user_available_on']; $tickettimeavailableon = $row['ticket_time_user_available_on']; $ticketlastmodifiedon = $row['ticket_last_modified_on']; $ticketenteredby = $row['ticket_entered_by']; $tickettype = $row['ticket_type']; } ?> <body> <form action="viewopenticket.php" method="GET" name="myform"> <table border="0" width="100%" bgcolor="#CCCCCC" cellspacing="0" cellpadding="5"> <tr> <td style="background:#CCCCCC;" colspan="4" style="background:#CCCCCC;" valign="top"> <img src="ucaheader.gif" width="415px" height="32px" align="left"> <span style="float:right;" >Logged in as <? echo $username; ?> [<a href="logout.php">Logout</a>]</span> </td> </tr> <tr> <td align="center" colspan="4" style="color: #FFFFFF; background: #0090FF;">BearCat Helpdesk Software</td> </tr> <tr> <td colspan="4"> <? if($header == 'normalUserMenu') { include("./headers/normalUserMenuHeader.php"); } elseif($header == 'superUserMenu') { include("./headers/superUserMenuHeader.php"); } ?> </td> </tr> <tr style="background:#0090FF; color: white;"> <td colspan="4"><center>Ticket Number <?echo $ticket_id?></center></td> </tr> <tr> <td colspan="2"><b>Customer Information</b></td> <td colspan="2"><b>Ticket Information</b></td> </tr> <tr> <td width="25%">Name: </td> <td align="left"><?echo $requestor;?></td> <td>Summary</td> <td><?echo $ticketsubject; ?></td> </tr> <tr> <td>Location: </td> <td align="left"><?echo $requestorlocation;?></td> <td>Location of Incident:</td> <td align="left"><? echo $ticketlocation;?></td> </tr> <tr> <td>Department: </td> <td align="left"><? echo $requestordepartment; ?></td> <td>Date/Time Created:</td> <td align="left"><?echo $ticketdatecreated . " "; $time_hour = substr($tickettimecreated, 0, 2); $time_min = substr($tickettimecreated, 3, 2); echo date("g:m A", mktime($time_hour, $time_minute)); ?> </td> </tr> <tr> <td>Phone: </td> <td align="left"><?echo $requestorphone;?></td> <td>Job Type: </td> <td align="left"><? echo $tickettype; ?></td> </tr> <tr> <td>Email: </td> <td align="left"><a href="mailto:<?echo $requestorlogin;?>@uca.edu"><?echo $requestorlogin;?>@uca.edu</a></td> <td>Ticket Status:</td> <td align="left"> <? echo $ticketstatus; ?></td> </tr> <tr> <td colspan="4"><hr> </td> </tr> <tr> <td colspan="4"><b>Additional Ticket Information</b></td> </tr> <tr> <td>Opened By: </td> <td ><? echo $ticketenteredby; ?></td> <td>Assigned To:</td> <td align="left"><? if($ticketassignedto == "zzUnassigned") {echo "Unassigned";} else{echo $ticketassignedto; } ?></td> </tr> <tr> <td>Was a Loaner Issued?:</td> <td align="left"><? echo $ticketwasloanerissued; ?></td> <td>Loaner Tag Number</td> <td ><?echo $ticketloanertagnum; ?></td> </tr> <tr> <td>UCA Tag Number:</td> <td align="left"><? echo $tickettagnum; ?></td> <td>Date/Time Closed:</td> <td align="left"><?echo $ticketdateclosed . " "; if($tickettimeclosed != "") { $time_hour = substr($tickettimeclosed, 0, 2); $time_min = substr($tickettimeclosed, 3, 2); echo date("g:m A", mktime($time_hour, $time_minute)); } ?> </td> </tr> <tr> <td colspan="4"><hr></td> </tr> <tr> <td colspan="2"><b>Description</b></td> <td colspan="2"><b>Resolution Notes</b></td> </tr> <tr> <td colspan="2"> <textarea cols="50" rows="15" name="ticketdescription" readonly="readonly"><?echo $ticketdescription; ?></textarea> </td> <td colspan="2"> <textarea cols="50" rows="15" name="ticketcomments" readonly="readonly"><?echo $ticketcomments; ?></textarea> <input type="hidden" name="ticketprevcomments" value="<? echo $ticketcomments; ?>"> </td> </tr> <tr> <td colspan="4">This ticket was last modified on <? echo $ticketlastmodifiedon; ?> <input type="hidden" value="<? echo date('His'); ?>" name="ticketopenedattime"> <input type="hidden" value="<? echo $tickettimestamp; ?>" name="tickettimestamp"> </td> </tr> <tr> <td colspan="3"> <input type="hidden" name="ticketid" value="<?echo $_GET['id']?>"></td> <td align="right"><input type="submit" value="Edit Ticket"></td> </tr> </table>
</form> <? } else {} ?>
Ok, now it's working in IE. Also, it wasn't working in Opera before either. So the error comes and goes.
I'm going to agree with bradgrafelman. Now, if it is a client-side problem, what kind of things should I be looking for in this instance?