PHP, MySQL, HTML forms...

Codes here !

Moderators: macek, egami, gesf

User avatar
Joan Garnet
Moderator
Moderator
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars
Contact:

Postby Joan Garnet » Sun Feb 02, 2003 1:05 pm

Code: Select all

<input type="checkbox" name="my_array[]" value="home" checked>Home Page
<input type="checkbox" name="my_array[]" value="page_one">Page 1
<input type="checkbox" name="my_array[]" value="page_two">Page 2
<input type="checkbox" name="my_array[]" value="page_three">Page 3
<input type="checkbox" name="my_array[]" value="page_four">Page 4

This way yo'll have an array called my_array and values will be:
my_array[0] --> home
my_array[1] --> page_one
and so on...

Return to “mySQL & php coding”

Who is online

Users browsing this forum: Google [Bot] and 1 guest