close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Dynamic Form Menu

Thread began 8/18/2012 6:55 pm by Loretta439108 | Last modified 8/22/2012 4:39 pm by Loretta439108 | 489 views | 6 replies


Dynamic Form Menu


I'm trying to put a dynamic form menu within a repeating section, in order to give the option to choose sizes. The sizes vary for each individual item (they change from item to item) and I'm having trouble setting up my recordset and menu to show the appropriate choices. I have 3 tables - an item table, an option table with the sizes, and an intermediate itemoption table linking the two tables. I want this information to be passed to ecart.

This is how I set up the recordset (which I suspect is wrong):

$varItem_rsSizes = "1";
if (isset($_GET['ItemID'])) {
$varItem_rsSizes = $_GET['ItemID'];
mysql_select_db($database_connSpectrum, $connSpectrum);
$query_rsSizes = sprintf("SELECT items.ItemID, options.OptionID, options.Option, options.OptionPrice, options.OptionWeight FROM items LEFT OUTER JOIN itemoptions ON items.ItemID = itemoptions.ItemID INNER JOIN options ON itemoptions.OptionID = options.OptionID WHERE items.ItemID = %s", GetSQLValueString($varItem_rsSizes, "int"));
$rsSizes = mysql_query($query_rsSizes, $connSpectrum) or die(mysql_error());
$row_rsSizes = mysql_fetch_assoc($rsSizes);
$totalRows_rsSizes = mysql_num_rows($rsSizes);

And this is the form:

<form id="form1" name="form1" method="post" action="">
<label for="sizes">Sizes & Prices:</label>
<select name="sizes" id="sizes">
<option value="null" <?php if (!(strcmp("null", $row_rsItems['ItemID']))) {echo "selected=\"selected\"";} ?>>--Please select a size--</option>
do {
<option value="<?php echo $row_rsSizes['OptionID']?>"<?php if (!(strcmp($row_rsSizes['OptionID'], $row_rsItems['ItemID']))) {echo "selected=\"selected\"";} ?>><?php echo $row_rsSizes['Option']?></option>
} while ($row_rsSizes = mysql_fetch_assoc($rsSizes));
$rows = mysql_num_rows($rsSizes);
if($rows > 0) {
mysql_data_seek($rsSizes, 0);
$row_rsSizes = mysql_fetch_assoc($rsSizes);

Can anyone tell me how to fix this from within Dreamweaver's interface?


Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...