Multiple Options?

free web hosting
Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > PHP Programming

Multiple Options?

kvarnerexpress
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

Reply

gameratheart
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.

Reply

jlhaslip
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.

Reply

cafefort
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

 

 

 


Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics

Keywords : multiple options

  1. Evilboard (forum Software) - Multiple Categorys - Don't Work :( - I am creating a forum and i can't fix more then 1 category. (6)
    I am at the moment trying to program my own forum, but i need more then a single category, here is
    my source: CODE function cat () { include("functions/functions.php");
    echo '<table width="100%"  border="0" cellspacing="0">
    <tr> <td class="eb_top" colspan="3" style="border-bottom-width:
    0; height: 30px; font-size: 12px;"> <b>Forum</b></td>
    </tr>';      global $catid;   $db = new db;   $db->connec...
  2. Multiple Drop Down Lists ? - Multiple drop down lists to take user to new page (4)
  3. Using Multiple Selection Array In Table To Order Data - Using multiple selection array in table to order data (1)
    have a form that has a multiple select choice, like this: CODE <form method="post"
    action="display.php" <select multiple name="selectsort[]">
    <option value="code">Code</option> <option
    value="amount">Amount</option> <option value="dateammended">Date
    Ammended</option> <option value="expreviewdate">Expiration/Review
    Date</option> <option value="effectivedate">Effective Date</option>
    <option value="e...
  4. How Handle Sending Back Multiple Checkboxes - (1)
    I know how to send back the check-boxes, so that's not the issue. I have a form that contains a
    group of 5 check-boxes. The user could select none, one, all, or any combination in between.
    I'm working on form validation right now and am doing most of it server side. The validation is
    set so that if the user has to go back all their data is retained. I'm using case statements,
    which work wonderfully, but in this circumstance I don't know what would be the best method that
    allows for a multitude of combinations. I think there is a possibility of somethi...
  5. Php Classes - Access the same class instance over multiple pages (1)
    Hey everyone. I am having some trouble accessing the same php class instance in more that one page.
    This is for my login script and what i need to do is be able to call the classes logout function
    from a separate page. What i have tried to do is create a new .php page and include the class file
    and then make a new class and call logout. This does not work because it does not log out the
    current user which is my problem. Can anyone help me fix this or know of another way to do it?
    Below is my class file CODE <?php     // member class     // handlers member logo...
  6. Php Sessions - Multiple users using the same login (2)
    Hi, I'm realtively new to PHP and I'm considering creating some login functionality.
    However I want a group of users to use the same loginname and password. They will be loggin infrom
    different machines. The users will know they are sharing the account. Can anyone give me an idea
    of what kind of effect this might have on my sessions? Will it create any odd hiccups or other
    strange things?...



Looking for multiple, options

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for multiple, options

*MORE FROM TRAP17.COM*
advertisement



Multiple Options?



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE