Make array from checkbox form

后端 未结 8 1841
囚心锁ツ
囚心锁ツ 2020-12-09 11:42

My friend and I are making a website that compiles news stories based on your interests. Is there and easy way to take the checkbox data and make an array out of the selecte

8条回答
  •  孤街浪徒
    2020-12-09 12:07

    //options[] makes it an array
    
    Politics
    Movies
    World

    You can access this array by $_GET['options']

    Try Print_r( $_GET['options']); to see the values in it.

提交回复
热议问题