close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Adding radio groups to existing products_insert.php and update page

Thread began 11/17/2013 2:27 pm by joerg431091 | Last modified 11/18/2013 9:56 am by joerg431091 | 984 views | 3 replies


Adding radio groups to existing products_insert.php and update page

I am trying to create a radio group in my existing products_insert.php and update pages where depending on which radio button is checked the according value is then entered into the DB table.

In one example the database table is “ProductSubCat_Hound_Leash_LengthID” and the radio group labels and values are:

Short = 1
Medium = 2
Long = 3
Adjustable = 4

My Radio Group in the products_insert.php page is:

<input type="radio" name="LeashLength" value="1" id="LeashLength_0" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("productsinsert","ProductSubCat_Hound_Leash_LengthID"):""),"1"))) {echo "checked=\"checked\"";} ?>>
<input type="radio" name="LeashLength" value="2" id="LeashLength_1" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("productsinsert","ProductSubCat_Hound_Leash_LengthID"):""),"1"))) {echo "checked=\"checked\"";} ?>>
<input type="radio" name="LeashLength" value="3" id="LeashLength_2" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("productsinsert","ProductSubCat_Hound_Leash_LengthID"):""),"1"))) {echo "checked=\"checked\"";} ?>>
<input type="radio" name="LeashLength" value="4" id="LeashLength_3" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("productsinsert","ProductSubCat_Hound_Leash_LengthID"):""),"1"))) {echo "checked=\"checked\"";} ?>>

The Binding for the column “ProductSubCat_Hound_Leash_LengthID” in the Server Behavior “Insert Record (products) are set to:

<?php echo ((isset($_POST["ProductSubCat_Hound_Leash_LengthID"]))?$_POST["ProductSubCat_Hound_Leash_LengthID"]:""); ?>

The values are not entered into the DB table. I have never done this and can’t figure out what I am missing here. Is there anything else that I have to do besides the binding in the server behavior or am I way off with this?

Any help is greatly appreciated.



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...