close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Data assist Checkbox

Thread begun 1/20/2013 12:56 pm by john70964 | Last modified 1/22/2013 1:07 pm by john70964 | 985 views | 2 replies |

john70964

Data assist Checkbox

I would like to replace the following code with a checkbox.
I have tried but cannot seem to get it to update.
In mysql I am using a tinyint with a default of 0

<div class="lineGroup"> <label for="Class" class="sublabel" > class:</label>
<div class="errorGroup">
<span>
<input id="Class" name="Class" type="text" value="<?php echo((isset($_GET["invalid"])?ValidatedField("boatsresults","Class"):"".$row_WADAboatsq["Class"]."")); ?>" class="formTextfield_Medium" tabindex="36">
</span>
</div>
</div>
Any ideas please?
Many thanks
john

Sign in to reply to this post

Jason ByrnesWebAssist

what is the value that will be stored if the checkbox is checked?

delete the text box from the page.

then add a checkbox and name it "Class"

Set the value to be what should be stored in the database when the checkbox is checked.

in the property inspector, click the dynamic button, and set the Check if option to:

php:
<?php echo((isset($_GET["invalid"])?ValidatedField("boatsresults","Class"):"".$row_W ADAboatsq["Class"]."")); ?>



for the Equal to option, enter the same thing you entered for the value.

Sign in to reply to this post

john70964

Thanks Jason

I think I had a problem with the check box field name "Class"

I have now changed the field name and I am able to create the checkbox within the Data Assist wizard.

Regards
John

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