You are here: Question about passing multiple checkbox variables in form to display in e-mail « PHP Programming Language « IT news, forums, messages
Question about passing multiple checkbox variables in form to display in e-mail

Posted by ATDave on 12/04/07 21:45

So basically I'm just creating a form that I want the results e-mailed
to somebody. I have everything working except for the checkmark
sections that can have multiple answers. I'm a newbie when it comes
to PHP, so please be easy :)

So to show an example:

<input type="checkbox" name="SelfDevelopmentInterest[]" class="other"
value="Self Confidence" />
<label class="left">Self Confidence</label> <br />
<input type="checkbox" name="SelfDevelopmentInterest[]" class="other"
value="Hair Make up" />
<label class="left">Hair/Make-up</label> <br />
<input type="checkbox" name="SelfDevelopmentInterest[]" class="other"
value="Poise Posture" />
<label class="left">Poise/Posture</label> <br />
<input type="checkbox" name="SelfDevelopmentInterest[]" class="other"
value="Interview Skills" />
<label class="left">Interview Skills</label> <br />

This is the checkbox options a user has. So on my confirmation page I
create the variable:

$SelfDevelopmentInterest = $_POST['SelfDevelopmentInterest'];

In the actual message, currently I print it out like this:

Self-Development Interest: $SelfDevelopmentInterest

When I get the e-mail, it only displays "Array". Say a user checks
the first three options, how can I pass all three and print it out in
the e-mail?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация