Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

creating table rows with form variables.

Posted on 2002-07-09
2
Medium Priority
?
151 Views
Last Modified: 2013-12-24
this is probably real easy.

I am trying to develop a form that would allow my user to define how many rows the next page will have.

example:

user inputs usual infomation (first name, last name, address, etc...)

now this person is also going to register other people on the same card, check, moneyorder.....

I will give them an option to check like

are you registering other people ..?  Yes No (radio btn,default no)

once the user checks the radio btn (yes) then they will have to put a value in another field (colums/people)

let say they put 10.

hence the next page(form action would) would now show a table with 10 rows and 2 colums:

first name: (text field)            Last name:(textfield)
first name: (text field)            Last name:(textfield)
first name: (text field)            Last name:(textfield)
first name: (text field)            Last name:(textfield)
first name: (text field)            Last name:(textfield)
first name: (text field)            Last name:(textfield)
first name: (text field)            Last name:(textfield)
first name: (text field)            Last name:(textfield)
first name: (text field)            Last name:(textfield)
first name: (text field)            Last name:(textfield)
                        (submit Btn2)
this will allow the user to register 10 more people under prefered payment method.


please help...











0
Comment
Question by:jriver12
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
SewellM earned 800 total points
ID: 7141600
Try this.  They have selected the number of extra fields on the page.  This form field was named otherPeople.  When the form submits, it send the value of this form field.  The second page should look similar to this:

<form>
<cfoutput>
<cfloop index="theCnt" from="1" to="#form.otherPeople#" step="1">
first name: <input type="text" name="othPplFirst#theCnt#">  Last name: <input type="text" name="othPplLast#theCnt#">  <br>
</cfloop>
</cfoutput>
<input type="submit" name="Submit" value="Submit">
</form>

This should display a row for the number selected on the previous page and each form element will be named differently.

Michael
0
 

Author Comment

by:jriver12
ID: 7143105
Michael

after putting more thought into my issue I luckily came up with the same solution.

thanks for you time.
its appreciated.
0

Featured Post

Looking for a new Web Host?

Lunarpages' assortment of hosting products and solutions ensure a perfect fit for anyone looking to get their vision or products to market. Our award winning customer support and 30-day money back guarantee show the pride we take in being the industry's premier MSP.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
What You Need to Know when Searching for a Webhost Provider
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question