how do i open new page from dynamic dropdown
Can anyone please help me with this:
I have set up this script
<p>Choose a Category</p>
<form id="form1" name="form1" method="post" action="<?php echo $row_Child['comp_url']; ?>">
<select size=1 name="Parent" id="Parent" onchange="WA_FilterAndPopulateSubList(Child_WAJA,MM_findObj('Parent'),MM_findObj('Child'),0,0,false,': ')">
<option value="">Please Select Below</option>
<?php
do {
?>
<option value="<?php echo $row_Parent['cat_id']?>"><?php echo $row_Parent['cat_name']?></option>
<?php
} while ($row_Parent = mysql_fetch_assoc($Parent));
$rows = mysql_num_rows($Parent);
if($rows > 0) {
mysql_data_seek($Parent, 0);
$row_Parent = mysql_fetch_assoc($Parent);
}
?>
</select>
</form>
<p> </p>
</div>
<div class="stepone">
<h3> Step Two:</h3>
<p> Choose a Company <strong><em>(Optional) </em></strong></p>
<form id="form2" name="form2" method="post" action="">
<select size=1 name="Child" id="Child">
<option>Please Select a Company</option>
</select>
<input type="image" src="images/global images/gobutton.png" name="go" id="go" value="Submit" />
</form>
<form id="form1" name="form1" method="post" action="<?php echo $row_Child['comp_url']; ?>">
^^Doesn't quite work. It gives me this error
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /home/content/h/o/m/homepagesdfw/html/mysavings.php on line 395
Line 395 is mysql_free_result($Child);
Is there any webassist support on this?