close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

How pass value from checked radiobutton to eCart ?

Thread began 5/03/2010 1:04 pm by Fritz Stickers | Last modified 5/05/2010 3:32 pm by Eric Mittman | 652 views | 3 replies |

Fritz Stickers

How pass value from checked radiobutton to eCart ?

Hi,

Customers can create their textsticker by choosing a font and a color.
The second "billboard" is to compair. The bg-color is a little help.
The values which will be sent by the form and which are in dubble :

* select name="FrogStyling_1_Color_Add" <> select name="comparecolor"
* select name="FrogStyling_1_Font_Add" <> select name="CompareFont"

The customer can make 2 different models, then he must select the radiobutton for his choice.
So there are 2 times the same options.
How do I pass the value from the checked radiobutton ?


Thanks in advance,
Geert.

Attached Files
TEST_radio.zip
Sign in to reply to this post

Eric Mittman

Making the form work like this will require some custom coding on your behalf. There might be a way to do this with client side js to not have the other elements post, but I think it would be best to do this server side.

You will basically need to have an if statement check on the radio group value that was posted, then based on this use the posted values from one set of select lists or another. You will need to make use of an if statement to do this. Here is a page with more info on creating the if statements.

vbscript_conditionals.asp

The idea in pseudo code would be like this:

if request.form("Eigentekst") = 1 then
use the first set of posted values
else
use the other set of values
end if

Sign in to reply to this post

Fritz Stickers

Ok, thanks.

Fixed it ! :)

Sign in to reply to this post

Eric Mittman

Glad to hear that, let us know if you have any other questions.

Sign in to reply to this post

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

Content

rating

Layout

rating

Ease of use

rating

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