CodeCharge Studio
search Register Login  

Web Reports

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 Auto insert Radiobutton values from DB

Print topic Send  topic

Author Message
klipkop

Posts: 16
Posted: 03/06/2007, 4:14 PM

Hi

I am swamp with the different technologies available to do (which I think) is a simple function

We are busy building a survey system in CCS. BUT the actual survey will be an "offline" html form that will be mailed to the respondent, using the POST method (I know about all the compatibility problems but we have workarounds build in)

Problem

Each question uses a scale (e.g. 1 -10) represented by radio button groups. Some of the questionnaires have up to 60 questions (60 x 10 values = 600 unique lines!!)
Up to now we manually created the html form using find and replace.... How can I automate this process through some form of script?

Example

If I create a "base" html code and then insert the input value with a counter (1 to 10) and get the unique questionID from a table (e.g. |1960) in insert it into the html. See the example below.

<td class="expectation"><input value="1" name="|1960" type="radio">0</td>
<td class="expectation"><input value="2" name="|1960" type="radio">1</td>
<td class="expectation"><input value="3" name="|1960" type="radio">2</td>

Possible solutions

Is xml the answer, are there any API's available? Surely this must have been done before. I spend hours on the net looking for solutions but every link goes to code a generator that does not systematically replace the input values for controls. Maybe I'm missing basic stuff.

Any advise / direction will be appreciated.
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.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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