This worked an absolute treat, thank you very much! I do however have one added question which follows along the same lines...
I am passing through the value which is selected for the category, some error checking is then completed and if an error is found it brings you back to the same page where I am displaying back the information entered. The problem is however that I can't seem to set the category select box selected item to whatever was passed through the first time.
Here is the code I am using which again works in Chrome/Firefox but not IE. I feel the solution will be something similar to the previous but not entirely sure what...
This is the javascript which is run onload of the page
Code:
var category;
<?php
print "category='".$postcategory."';\n";
?>
if(category != ""){
document.getElementById("category").value = category;
}