close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Radio button info on checkout page not retained after clicking modify on confirm page

Thread began 7/21/2019 8:11 pm by Roxana | Last modified 7/23/2019 11:52 am by Ray Borduin | 403 views | 3 replies |

Roxana

Radio button info on checkout page not retained after clicking modify on confirm page

I added a radio button choice for prefix. It is posted to the confirm page, but when I go back of hit modify, the value is not retained.

This is what I tried:

<label>
<input type="radio" name="prefix" value="<?php echo $row_rscontent8['description23']; ?>" id="prefix" <?php if(isset($_POST['prefix']) && ($_POST['prefix'] == '<?php echo $row_rscontent8[\'description23\']; ?>')) echo "checked";?> />
<?php echo $row_rscontent8['description23']; ?></label>&nbsp;&nbsp;&nbsp;
<label>
<input type="radio" name="prefix" value="<?php echo $row_rscontent8['description24']; ?>" id="prefix" <?php if(isset($_POST['prefix']) && ($_POST['prefix'] == '<?php echo $row_rscontent8[\'description24\']; ?>')) echo "checked";?> />
<?php echo $row_rscontent8['description24']; ?></label>

It is not working though.

Sign in to reply to this post

Roxana

Still no progress

I also tried the code below, but still no luck. All values on the checkout page are retained, except for the radio buttons.

<label>
<input type="radio" name="prefix" value="<?php echo $row_rscontent8['description23']; ?>" id="prefix" <?php if (!(strcmp($row_rscontent8['description23'], (isset($_GET['valid'])?ValidatedField("confirm_046","prefix"):(isset($_SESSION['eCartCheckoutForm_prefix'])?$_SESSION['eCartCheckoutForm_prefix']:""))))) {echo "selected=\"selected\"";} ?> />
<?php echo $row_rscontent8['description23']; ?></label>&nbsp;&nbsp;&nbsp;
<label>
<input type="radio" name="prefix" value="<?php echo $row_rscontent8['description24']; ?>" id="prefix" <?php if (!(strcmp($row_rscontent8['description24'], (isset($_GET['valid'])?ValidatedField("confirm_046","prefix"):(isset($_SESSION['eCartCheckoutForm_prefix'])?$_SESSION['eCartCheckoutForm_prefix']:""))))) {echo "selected=\"selected\"";} ?> />
<?php echo $row_rscontent8['description24']; ?></label>

Sign in to reply to this post

Ray BorduinWebAssist

radio buttons use "checked" instead of "selected"... try changing that in the code.

Sign in to reply to this post
Did this help? Tips are appreciated...

Roxana

It works

Thank you, Ray. After a day of trial and error, trying a ton of code snippets of the internet, I actually came so close.. Thanks again :)

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