Jump to content


On Submit + pass dynamic values

  • Please log in to reply
No replies to this topic

#1 helwo

  • New Members
  • Pip
  • Newbie
  • 3 posts

Posted 29 March 2006 - 01:53 AM

I am passing two fields through the url on selection through a dynamic form. However, it is only passing the first value on either selected field. The selections are in drop down boxes, what am I missing?
<div id="findcleaner">
<div id="findhead">Find a Vacuum Cleaner </div>
<div id="findcontent">
  <p>Please select the purpose of your vacuum cleaning needs. </p>
  <form name="form1" id="form1" method="post" action="store_items.php">
      <?php do { ?>
        <td><a href="find_cleaner.php?cat_id=<?php echo $row_category['cat_id']; ?>"><?php echo $row_category['category']; ?></a></td>
      <?php } while ($row_category = mysql_fetch_assoc($category)); ?>
    <p>Please select an area:
      <select name="subcat">
do {  
        <option value="<?php echo $row_subcat['subcat_id']?>"<?php if (!(strcmp($row_subcat['subcat_id'], $row_subcat['subcat_id']))) {echo "SELECTED";} ?>><?php echo $row_subcat['subcategory']?></option>
} while ($row_subcat = mysql_fetch_assoc($subcat));
  $rows = mysql_num_rows($subcat);
  if($rows > 0) {
      mysql_data_seek($subcat, 0);
      $row_subcat = mysql_fetch_assoc($subcat);
      <p>Please select your cleaning needs:
      <select name="select">
do {  
        <option value="<?php echo $row_subcat2['subcat_id']?>"<?php if (!(strcmp($row_subcat2['subcat_id'], $row_subcat2['subcat_id']))) {echo "SELECTED";} ?>><?php echo $row_subcat2['subcat2']?></option>
} while ($row_subcat2 = mysql_fetch_assoc($subcat2));
  $rows = mysql_num_rows($subcat2);
  if($rows > 0) {
      mysql_data_seek($subcat2, 0);
      $row_subcat2 = mysql_fetch_assoc($subcat2);

      <p><a href="store_items.php?subcat_id=<?php echo $row_subcat['subcat_id']; ?>&subcat2_id=<?php echo $row_subcat2['subcat2_id']; ?>" target="_blank" onClick="window.close();">Submit</a> </p>




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users