infolink

Wednesday 25 February 2015

PHP Multiple Checkbox Array

This example shows how the programmer can use multiple checkbox array and display the values of selected checkboxes.

Multiple Checkbox Array
Multiple Checkbox Array

PHP Code:

<form method='post' id='form1' action='CheckboxArray.php?process'> 
<table> 
<tr>
    <td>Checkbox Array Example. Select from below</td>
</tr>
<tr>
    <td>
    <input type='checkbox' name='checkboxarray[]' value='checkbox 1'>checkbox 1<br>
    <input type='checkbox' name='checkboxarray[]' value='checkbox 2'>checkbox 2<br>
    <input type='checkbox' name='checkboxarray[]' value='checkbox 3'>checkbox 3
    </td> 
</tr> 
</table> 
<input type='submit' id="submit" value="Click"> 
</form>

<?php 
if (isset($_GET['process'])) 
{
echo "you Selected: ";
foreach($_POST['checkboxarray'] as $value)
{
echo $value."\t"; 
}
}
?>


Note:

Copy and paste this code and save the file with the name of "CheckboxArray.php" and enjoyed.

OUTPUT


Multiple Checkbox Array
Multiple Checkbox Array

39 comments:


  1. I am newbie of this PHP technology, this post helps me to know the introductory of PHP, Thanks for posting such a nice post.
    Regards,
    PHP Training in Chennai|PHP Course in Chennai

    ReplyDelete
  2. Nice post.Thank you so much for sharing your valuable information about PHP.I have learned much.Iam a begginer of PHP. Have a look on custom software development company,if you want any software solutions.we bring to you the BEST solutions at nominal rates.

    ReplyDelete
  3. Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
    amazon-web-services-training-in-bangalore

    Best Hadoop Training Institute In chennai

    ReplyDelete
  4. I wish to show thanks to you just for bailing me out of this particular trouble.As a result of checking through the net and meeting techniques that were not productive, I thought my life was done.
    java training in chennai

    ReplyDelete
  5. this is really too useful and have more ideas and keep sharing many techniques. eagerly waiting for your new blog and useful
    information. keep doing more.Send a message.

    pacetechnosoft
    Education

    ReplyDelete
  6. Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.

    ReplyDelete
  7. Nice tutorial. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful. Keep sharing on updated tutorials…
    java training in chennai | java training in bangalore

    java online training | java training in pune

    java training in chennai | java training in bangalore

    java training in tambaram | java training in omr

    ReplyDelete
  8. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
    python training in chennai | python training in bangalore

    python online training | python training in pune

    python training in chennai | python training in bangalore

    ReplyDelete
  9. Very well written blog and I always love to read blogs like these because they offer very good information to readers with very less amount of words....thanks for sharing your info with us and keep sharing.

    java training in annanagar | java training in chennai

    java training in marathahalli | java training in btm layout

    java training in rajaji nagar | java training in jayanagar

    ReplyDelete
  10. Great post! I am actually getting ready to across this information, It’s very helpful for this blog.Also great with all of the valuable information you have Keep up the good work you are doing well.

    Data Science Training in Chennai
    Data science training in bangalore
    Data science online training
    Data science training in pune
    Data science training in kalyan nagar
    Data Science with Python training in chenni

    ReplyDelete
  11. I have been meaning to write something like this on my website and you have given me an idea. Cheers.
    python training in velachery
    python training institute in chennai

    ReplyDelete
  12. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
    Devops Training in pune
    Devops Training in Chennai
    Devops training in sholinganallur
    Devops training in velachery

    ReplyDelete

  13. Hello. This post couldn’t be written any better! Reading this post reminds me of my previous roommate. He always kept chatting about this. I will forward this page to him. Fairly certain he will have a good read. Thank you for sharing.
    AWS Training in Bangalore |Best AWS Training Institute in Bangalore BTM, Marathahalli
    AWS Training in Chennai | AWS Training Institute in Chennai Velachery, Tambaram, OMR

    ReplyDelete
  14. Thanks Admin for sharing such a useful post, I hope it’s useful to many individuals for developing their skill to get good career.
    python training in rajajinagar
    Python training in btm
    Python training in usa
    Python training in marathahalli

    ReplyDelete

  15. Howdy, would you mind letting me know which web host you’re utilizing? I’ve loaded your blog in 3 completely different web browsers, and I must say this blog loads a lot quicker than most. Can you suggest a good internet hosting provider at a reasonable price?
    Amazon Web Services Training in OMR , Chennai | Best AWS Training in OMR,Chennai
    Amazon Web Services Training in Tambaram, Chennai|Best AWS Training in Tambaram, Chennai

    ReplyDelete
  16. Hmm, it seems like your site ate my first comment (it was extremely long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well as an aspiring blog writer, but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d appreciate it.

    AWS Interview Questions And Answers

    AWS Training in Bangalore | Amazon Web Services Training in Bangalore

    Amazon Web Services Training in Pune | Best AWS Training in Pune

    AWS Online Training | Online AWS Certification Course - Gangboard

    ReplyDelete
  17. If so how do you stop it, any plugin or anything you can advise? I get so much lately it’s driving me insane, so any assistance is very much appreciated.fire and safety course in chennai

    ReplyDelete
  18. Thank you for allowing me to read it, welcome to the next in a recent article. And thanks for sharing the nice article, keep posting or updating news article.
    angularjs online training

    apache spark online training

    informatica mdm online training

    devops online training

    aws online training

    ReplyDelete
  19. I prefer to study this kind of material. Nicely written information in this post, the quality of content is fine and the conclusion is lovely. Things are very open and intensely clear explanation of issues
    devops online training

    aws online training

    data science with python online training

    data science online training

    rpa online training

    ReplyDelete
  20. Such a very useful Blog. Very interesting to read this article. I have learn some new information.thanks for sharing. data science courses

    ReplyDelete




  21. Nice article and thanks for sharing with us. Its very informative



    Tableau Training in Hyderabad

    ReplyDelete
  22. Searching for the Oracle DBA Training in Chennai? Then come to Infycle for the best software training in Chennai. Infycle Technologies is one of the best software training institute in Chennai, which offers various programs in Oracle such as Oracle PLSQL, Oracle DBA, etc., in complete hands-on practical training from professionals in the field. Along with that, the interviews will be arranged for the candidates and 200% placement assurance will be given here. To have the words above in your life, call 7502633633 to Infycle Technologies and grab a free demo to know more.Top Oracle DBA Training in Chennai | Infycle Technologies

    ReplyDelete

  23. PYTHON TRAINIING INSTITUTE IN CHENNAI | INFYCLE TECHNOLOGIES:


    Reach out to Infycle Technologies, the leading software training school in Chennai, to get python training in Chennai and enter the software sector with well-defined capabilities. Infycle Technologies is one of Chennai's fastest growing software training and placement centres, with a reputation for providing high-quality hands-on training with a 100% assured job placement.

    Best software training in Chennai

    ReplyDelete
  24. Take a class for Python Training within Hyderabad and begin your bright career in this field by enrolling in AI Patasala. Students can pursue their careers through this Python course.
    Python Institute in Hyderabad

    ReplyDelete
  25. This post is so interactive and informative.keep update more information...
    RPA Training in Chennai
    RPA Training in Chennai

    ReplyDelete
  26. Extremely overall quite fascinating post. I was searching for this sort of data and delighted in perusing this one. Continue posting. A debt of gratitude is in order for sharing.360digitmg-data science course data science training in surat

    ReplyDelete