|
|
|
|
![]() ![]() |
Mar 5 2006, 10:13 PM
Post
#1
|
|
|
Super Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Members Posts: 407 Joined: 13-December 04 Member No.: 2,696 |
Okay so what Im trying to figure out is how I would go about giving the people to uh, well for examplkes sake it would be like
"how many cats do you have" then theyd fill in a number, submit and the next page would print out boxes for as many cats they have that will be too fill in a color of the cat, so basically something like that, where it will only give them so many fields based on how many they said they have, and then their final "reciept" will only print out stuff for as many as they filled itn |
|
|
|
Mar 5 2006, 10:42 PM
Post
#2
|
|
|
Privileged Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: [HOSTED] Posts: 511 Joined: 14-November 05 From: Britannia! Member No.: 14,287 myCENT:42.36 |
There are scripts like these available on the web. If you want all your questions to be multiple choice, using drop-downs, then there is a script at this website called Javascript Kit that might satisfy your needs.
This post has been edited by NDPA: Mar 5 2006, 10:42 PM |
|
|
|
Mar 5 2006, 10:59 PM
Post
#3
|
|
|
A computer once beat me at chess, but it was no match for me at kick boxing. ![]() Group: [MODERATOR] Posts: 4,300 Joined: 24-July 05 From: Linix, DOS and Windows…the good, the bad and the ugly Member No.: 9,787 ![]() myCENT:46.50 |
|
|
|
|
Mar 29 2006, 02:14 AM
Post
#4
|
|
|
Newbie ![]() Group: Members Posts: 4 Joined: 29-March 06 Member No.: 20,910 |
Hi
You can do it this way: CODE <?php function inputline($i) { echo "<input type=text name=cat$i />"; } if (isset($_POST["number"])) { echo "<form action=\"nextaction.php\">"; for ($i=0,$i<$_POST["number"];$i++) inputline($i); echo "<input type=submit name=ok value= send />"; echo "</form>"; } else { //show the first page here } ?> that's a draft of course, you can improve this hope this helps |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 22nd November 2008 - 04:19 PM |