i cannot for the life of me figure what is wrong with this? when i click submit in the url it goes to
index.php?selectid=Crabmill+Flash&Submit=Submit+Query
where the hell is this +Query coming from? it should be
index.php?action=post
maybee am i just having one of those days
<? include ("db.php"); ?>
<form name="select" method="post" action="index.php?action=post" target="_parent">
<?php
$result2 = mysql_query("SELECT * FROM products ORDER BY cname ASC");
if(mysql_num_rows($result2) > 0) {
?>
Select an entry:
<select name="selectid">
<?php
while($row=mysql_fetch_array($result2)) {
?>
<option><?php echo $row['cname'];?></option>
<?php
}
}
?>
</select>
<input type="submit" name="Submit">
</form>
thanks for ur help!