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

rating

DataBridge radio groups in my register page

Thread began 3/30/2013 9:42 am by Paul | Last modified 3/30/2013 10:22 pm by Jason Byrnes | 461 views | 3 replies |

PaulBeta Tester

DataBridge radio groups in my register page

I've used DB to create user reg and login pages, etc.
There seems to be an issue with handling radio groups in the wizard created register page.

When a user completes and submits a new form, my server responds with Column 'hoType' cannot be null.

Below is the code snip which refers to the issue.

The behavior i want is for a value 1 or 2 to be saved to my MySQL table.
This coding is not posting the value for some reason. Any ideas please?


html:
<div class="lineGroup">
<label for="Registration_group_hoType__1" class="sublabel" > hoType:<span class="requiredIndicator">&nbsp;*</span></label>
<div class="errorGroup"> <span id="Registration_group_hoType__1_Spry"> <span> <span class="radioFieldGroup_Wide"> <span class="radioGroup_Wide">
<label class="radioSublabel_Wide" for="Registration_group_hoType__1" onClick="hideServerError('Registration_group_hoType__1_ServerError');"> Seller&nbsp;
<input type="radio" name="Registration_group_hoType" id="Registration_group_hoType__1" value="1" class="formRadioField_Standard" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("register","Registration_group_hoType"):""),"1"))) {echo "checked=\"checked\"";} ?> tabindex="6">
</label>
<label class="radioSublabel_Wide" for="Registration_group_hoType__2" onClick="hideServerError('Registration_group_hoType__1_ServerError');"> Buyer&nbsp;
<input type="radio" name="Registration_group_hoType" id="Registration_group_hoType__2" value="2" class="formRadioField_Standard" <?php if (!(strcmp((isset($_GET["invalid"])?ValidatedField("register","Registration_group_hoType"):""),"2"))) {echo "checked=\"checked\"";} ?> tabindex="7">
</label>
</span> </span>
<?php
if (ValidatedField('register','register')) {
if ((strpos((",".ValidatedField("register","register").","), "," . "7" . ",") !== false || "7" == "")) {
if (!(false)) {
?>
<span class="serverInvalidState" id="Registration_group_hoType__1_ServerError">Please enter a value.</span>
<?php //WAFV_Conditional register.php register(7:)
}
}
}?>
<span class="radioRequiredMsg">Please enter a value.</span> </span> </span> </div>
</div>
Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the page so i can see the code in context.

Sign in to reply to this post

PaulBeta Tester

register page attached.

Sign in to reply to this post

Jason ByrnesWebAssist

in the insert record behavior, most of the database columns are bond to a form element named undefined.

open the server behaviors panel, in the list of server behaviors, double click the Insert record behavior to edit it. Go to the Bindings tab.

With the exception of the Primary Key ID Column, Select each database column and click the lightning bolt icon to select the corresponding form element from the bindings list.

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