Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

IE problem with form display

php mysql form



2:10 pm on Dec 20, 2007 (gmt 0)

5+ Year Member

I'm having an issue with internet explorer today seems to have come out of no where. IE doesn't want to display the dropdown menu for me database selection, it's only displaying what is in the database in a line. Here is my code. Firefox seems to be handeling it fine.

<h1>Upload WAND RMA Files</h1>
<p>Unit types include The WAND, COMPUDENT, COMPUMED and The WAND Plus</p>
<br />
<form action="<?php echo $_SERVER['PHP_SELF'];?>"
method="post" enctype="multipart/form-data">
print '<select name="rma">'."\n";
print '<option value="none">Select RMA number&nbsp;&nbsp;&nbsp;</option>'."\n";
//mysql_query currently only selects STA units because of ref_categories_id equaling 2
$rma_number = mysql_query('SELECT * FROM rma WHERE ref_categories_id=1 AND ref_status_id<=4 ORDER BY rma_number');while ($rma = mysql_fetch_array($rma_number, MYSQL_ASSOC)){
print'<option value="'.$rma['id'].'"';
if($record_data['ref_rma_id']==$rma['id']) print " selected=\"selected\" ";
print '>'.$rma['rma_number']."</option>\n";



echo '<br /><br />';
print '<select name="status">'."\n";
print '<option value="none">Select unit status</option>'."\n";
$status_name = mysql_query('SELECT * FROM status ORDER BY id');while ($status = mysql_fetch_array($status_name, MYSQL_ASSOC)){
print'<option value="'.$status['id'].'"';
if($record_data['ref_status_id']==$status['id']) print " selected=\"selected\" ";
print '>'.$status['status_name']."</option>\n";
print '</select>'."<br />\n";
<br />
<label>STA or Wand RMA File:
<input type="file" name="upload" /></label><br /><br />
<input type="text" name="desc" maxlength="255" /></label><br /><br />
<input type="submit" value="Upload" />


2:22 pm on Dec 20, 2007 (gmt 0)

5+ Year Member

Just for more clarity this is how IE is displaying one of the menus:

Select unit status New RMA Form Estimate Approved No Repair Shipped

Instead of a dropdown menu


2:41 pm on Dec 20, 2007 (gmt 0)

10+ Year Member

You're closing the first <select> menu, right?


2:55 pm on Dec 20, 2007 (gmt 0)

5+ Year Member

nope i didn't have it closed, that was it. I wonder why firefox closed it for me?

Thanks for pointing that one out for me.


3:47 pm on Dec 20, 2007 (gmt 0)

10+ Year Member

I find that Firefox has a more advanced inherent comprehension for the DOM than good ole' Explorer.

When an object is obviously left open Firefox is able to interpret the logical next step.


4:04 pm on Dec 20, 2007 (gmt 0)

WebmasterWorld Administrator coopster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

Also, if you aren't using a validator you may want to consider it as another tool in your development arsenal.


Troubleshooting pages just got a lot easier for you ;)


4:26 pm on Dec 20, 2007 (gmt 0)

5+ Year Member

Thanks for all the help!

Featured Threads

Hot Threads This Week

Hot Threads This Month