homepage Welcome to WebmasterWorld Guest from 54.205.99.71
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
IE problem with form display
php mysql form
brancook




msg:3531966
 2:10 pm on Dec 20, 2007 (gmt 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>

 

brancook




msg:3531974
 2:22 pm on Dec 20, 2007 (gmt 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

justgowithit




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

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

brancook




msg:3531996
 2:55 pm on Dec 20, 2007 (gmt 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.

justgowithit




msg:3532031
 3:47 pm on Dec 20, 2007 (gmt 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.

coopster




msg:3532045
 4:04 pm on Dec 20, 2007 (gmt 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 ;)

brancook




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

Thanks for all the help!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved