Jump to content
xisto Community
Sign in to follow this  
kvarnerexpress

Multiple Options?

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Edited by NDPA (see edit history)

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Hi :)

You can do it this way:

<?phpfunction 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 :P

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.