Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Multiple Options?
kvarnerexpress
post 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
Go to the top of the page
 
+Quote Post
gameratheart
post 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
Go to the top of the page
 
+Quote Post
jlhaslip
post 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 Icon

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
Spam Patrol
myCENT:46.50



Notice from jlhaslip:

I withdraw my original post. It wasn't what you are looking for. I suggest you visit hotscripts.com and find a suitable script and mod it. You don't seem to give us enough information to allow us to assist. The specifications are just too vague and there are many unknowns here. Do you want to retain the info? What's with this receipt thingy? Is there a database involved? Sounds like too much work to provide an answer on a forum. You want an application written. Or at least most of one.

There are methods using php to vary an select menu. Google on "html select menu variable size" to see what you come up with. I get over 2 million responses. There is simply too much guess work in this question for me to assist.
Go to the top of the page
 
+Quote Post
cafefort
post Mar 29 2006, 02:14 AM
Post #4


Newbie
*

Group: Members
Posts: 4
Joined: 29-March 06
Member No.: 20,910



Hi smile.gif

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 smile.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. How Handle Sending Back Multiple Checkboxes(1)
  2. Evilboard (forum Software) - Multiple Categorys - Don't Work :((6)
  3. Using Multiple Selection Array In Table To Order Data(1)
  4. Multiple Drop Down Lists ?(4)


 



- Lo-Fi Version Time is now: 22nd November 2008 - 04:19 PM