Board index   FAQ   Search  
Register  Login
Board index php forum :: Database mySQL & php coding

PHP, MySQL, HTML forms...

Codes here !

Moderators: macek, egami, gesf

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...
User avatar
Joan Garnet
Moderator
Moderator
 
Posts: 387
Joined: Sat Aug 03, 2002 2:56 am
Location: Mars

Return to mySQL & php coding

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.

cron