Register | Login

Search:




Reply to topic

Author Message
Need help with html 2009-10-10 22:55:32, #1

Hi,

I'm designing a new site.  Having issues passing multiple checkboxes of a form to the next page.

Here's my test code.

Code:
Select all categories that apply. <form method="post"> 1 <input type="checkbox" name="category" value="1"> 2 <input type="checkbox" name="category" value="2"> 3 <input type="checkbox" name="category" value="3"> 4 <input type="checkbox" name="category" value="4"> 5 <input type="checkbox" name="category" value="5"> <input type="submit" value="Submit" name="Submit"> </form>
So I want all the categories the user selects.


 
Re: Need help with html 2009-10-11 13:47:06, #2

Code:
Select all categories that apply. <form method="post"> 1 <input type="checkbox" name="category[]" value="1"> 2 <input type="checkbox" name="category[]" value="2"> 3 <input type="checkbox" name="category[]" value="3"> 4 <input type="checkbox" name="category[]" value="4"> 5 <input type="checkbox" name="category[]" value="5"> <input type="submit" value="Submit" name="Submit"> </form>
You're going to need to learn a server side language such as php or asp to be able to manipulate this data and not just html.


Tomimo - Common meeting place where students, professors and academic advisors discuss core issues.
Hand Me Gowns - Buy, sell or trade your unused gowns and dresses. Clear out your closet and make money doing it.
Yan's Kitchen - Finest Chinese and Japanese food. Combined with our well-experienced chefs of over 15 years.
Ontario iPS - Ontario at the cutting edge of new technologies and applications in induced pluripotent stem cells.
Badminton Club - One of the most popular badminton clubs in south western ontario. We have over 100 active members.
 
Re: Need help with html 2009-10-12 13:23:49, #3

great, that leads me to another problem... since i do not know any server-side languages.  But it's good to know thanks.


 
Reply to topic





Copyright © 2009, HitYotta Business Solutions