PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hey, I've got a form that requires people to check some checkboxes. I need to have the checked boxes included as part of a mail(), could anyone make a suggestion on the best way to do it?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title></title>
</head>
<body>
<form action="php/volunteer.php" method=post>
<span id="space_ten">First Name*</span>
<span style="padding-left:80px;">Last Name*</span><br>
<span id="space_ten"><input type="text" name="first"></span>
<span style="padding-left:10px;"><input type="text" name="last"></span><p>
<span id="space_ten">Phone Number</span><br>
<span id="space_ten"><input type="text" name="phone"></span><p>
<span id="space_ten">Your E-mail*</span><br>
<span id="space_ten"><input type="text" name="email"></span><p>
<span id="space_ten">Adress 1</span><br>
<span id="space_ten"><input type="text" name="adress1" size="50"></span><br>
<span id="space_ten">Adress 2</span><br>
<span id="space_ten"><input type="text" name="adress2" size="50"></span><br>
<span id="space_ten">City</span>
<span style="padding-left: 105px;">State</span>
<span style="padding-left: 90px;">Zip Code</span><br>
<span id="space_ten"><input type="text" name="city" size="17"></span>
<span style="padding-left: 5px;"><input type="text" name="state" size="2"></span>
<span style="padding-left: 90px;"><input type="text" name="zip" size="5"></span>
<p>
<b>Yes, I will..</b><br>
<div style="padding-left: 15px;">
<input type="checkbox" name="vote">Vote for Judson<br>
<input type="checkbox" name="sign">Put a sign at my home or place of business<br>
<input type="checkbox" name"meet">Arrange fo Judson to speak to my club or orginizations<br>
<input type="checkbox" name="help">Help in the office<br>
<input type="checkbox" name="walk">Walk my neighborhood<br>
<input type="checkbox" name="call">Make phone calls to voters<br>
<input type="checkbox" name="host">Host a coffee meeting event or fundraiser
</div><p>
<b>I would like to..</b><br>
<div style="padding-left: 15px;">
<input type="checkbox" name="talk">Talk to Judson<br>
<input type="checkbox" name="where">Find out where to vote or where to register to vote<br>
<input type="checkbox" name"district">Find out if I live in the district<br>
<input type="checkbox" name="join">Join Judson's e-mail list<br>
<input type="checkbox" name="receive">Receive campaign literatur<br>
<input type="checkbox" name="money">Financially support Judson's campaign
</div>
<br><br>
<span style="padding-left: 250px;"><input type="submit" value="Submit"></span>
</form>
</body>
</html>
So anyway, I'm going to take the info like name and adress, etc. and make them variables from the _POST action, and include those variables in the mail message. I also want to include the items that are checked off as part of the message to the recepient.
Nothing to complicated really, I'm just not very code savvy.