hi
now i want the first one alone to be seclectes on page load,rest should word based on the user clicks
SCRIPT LANGUAGE="JAVASCRIPT" TYPE="TEXT/JAVASCRIPT">
<!--
function view(s)
{
if(ss.options[s.selectedIndex].value!="none")
{
var a=document.getElementById('IndustryType');
var temp=a.value;
parent.frameright.location = "http://www.website.com/web_desc.php?var=" + temp;
}
}
-->
</script>
$result=mysql_query("select * from jopposting where owns='$id' and chkshare='yes' order by jtitle asc");
if($result)
{
print "<select name='IndustryType' language='javascript' onChange='view(this);' size='12' style='width: 300px'>";
while($myrow = mysql_fetch_array($result))
{
print "<option value='$myrow[0]'>$myrow[1]</option>";
}