CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 how to use radio button in record builder

Print topic Send  topic

Author Message
fabiokbca

Posts: 18
Posted: 02/14/2012, 7:11 AM

Hi guys.
I can not use radiobutton in my recordbuilder. I need 2 radiobutton for user choose if registrer if natural person or legal entity.

Natural person value is "F" and legal entity value is "J".
How insert or update this values in my database table?
Example:

name : ___________
type : ( ) natural person (X) legal entity

View profile  Send private message
clahti2

Posts: 107
Posted: 02/15/2012, 9:59 PM

hmmm, radio button controls need to have the same NAME attribute but different values. The selected value is what is present when the form is posted. So for example:

  
<tr><td><input id="Radio1" value="F" type="radio" name="MyDBField"></td></tr>  
<tr><td><input id="Radio2" value="J" type="radio" name="MyDBField"></td></tr>  

In the above case the id's are different, the values are different, but the name is the same. Make sense?
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

PHP Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.