Welcome to WebmasterWorld Guest from 54.147.44.13

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)

Junior Member

5+ Year Member

joined:Oct 2, 2006
posts: 187
votes: 0


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">
<?php
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";

}

MY PROBLEM SEEMS TO BE OCCURING SOMEWHERE FROM HERE DOWN.

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 />
<label>Note:
<input type="text" name="desc" maxlength="255" /></label><br /><br />
<input type="submit" value="Upload" />
</form>

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

Junior Member

5+ Year Member

joined:Oct 2, 2006
posts: 187
votes: 0


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)

Preferred Member

10+ Year Member

joined:Jan 19, 2004
posts:505
votes: 0


You're closing the first <select> menu, right?
2:55 pm on Dec 20, 2007 (gmt 0)

Junior Member

5+ Year Member

joined:Oct 2, 2006
posts: 187
votes: 0


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)

Preferred Member

10+ Year Member

joined:Jan 19, 2004
posts:505
votes: 0


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)

Administrator

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

joined:July 31, 2003
posts:12533
votes: 0


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

[w3.org...]

Troubleshooting pages just got a lot easier for you ;)

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

Junior Member

5+ Year Member

joined:Oct 2, 2006
posts: 187
votes: 0


Thanks for all the help!