close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

radio buttons checked default value

Thread began 5/31/2012 11:44 pm by Christopher West | Last modified 6/01/2012 8:46 am by Christopher West | 2334 views | 1 replies

Christopher WestCommunity Expert

radio buttons checked default value

Hi Jason, I created a new thread so not to confuse matter, Do you remember that situation of having a list of different shipping addresses for customer and I wanted to use a radio button (in a recordset loop) so that the customer can select which shipping address to use as a default for the checkout page. well with your help, I have managed to get it updating...HOWEVER the problem is as I dont usually use radio buttons, they feel a little frustrating to get them to play nice...What I would like is that when the customer goes on the managed address page they default address that is associated with the customer table would be selected (checked). but I just cannot get this little tweak working....I also tried to put the recordset AFTER the update but then got php error:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\Server\www\dinky\plugins\customer\manage-shippingaddress.php on line 114

could this be due to me being slopping and created 2 recordsets (rsUsers and rsAddress) - should I have just created one recordset for the 2 tables?

anyway..how can I tweak the code so that the address that is suppose to be the default on be selected by default when the customer goes to this page?

Regards

Chris

Attached Files
manage-shippingaddress.zip

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