Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

PHP Tutorial Parse Multiple Select HTML Form Fields - DevelopPHP dot com

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
2,031
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 11, 2012

Script: http://www.developphp.com/view.php?tid=1225
Adam teaches how to use PHP to parse multiple selection form fields in your HTML or HTML5 forms. The resulting variable is an array if you instruct the select field to handle multiple options. We have to break this array down to split the selections for our data processing needs, or you can choose to save the serialized complete array into one MySQL database field.

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (11)

Sign In or Sign Up now to post a comment!
  • Just a quick note, Adam, (at 6:44) when using the foreach construct in the form foreach ($array as $key=>$value), unless the array is an array defined using your own keys, like $my_array = array("my_key"=>"my_value") or the array was modified, (I know you know this) the array key index starts with zero anyways, so there is no need to create an iterator. You can just use the $key variable in the loop...

  • May God continue to bless you... Thank you so much. I think the only thing missing from your exceptional collection is a fully fledged PHP Point Of Sale. How about it?

  • Nice

  • The tutorial is very professionally presented.

  • 1st

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more