SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    May 2010
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Sending emails according checkbox

    Hi guys,

    I am trying to setup a form using array, however I got stuck there, would you please have a look for me?

    I have a form using checkbox, this form will always submit to the admin, for example to admin@bigpond.com. At the same time I want it to be sent to email1@bigpond.com when user ticks Yes of "Caterers". When user ticks Photographers then also send this form to another email email1@bigpond.com....etc.

    I managed to send the form to admin, also to "Caterers" email address. However, on the submit email, just showing these:

    Someone has sent the following enquiries:

    Full Name: ABC

    Email Address: user@bigpond.com

    I would like you guys supply: Array

    Line 1 to 3 are what I want, but on line 4, it is only showing "Array", I want it to show Caterers, Photographers, Bakers, Florists if they are all ticked by user. Then the admin will know what the user actually order. Once again, the form will also send to different related department with their own email address according to the checkbox.

    I just can't figure out what I should do, would anyone please check on my setting?

    Please help. Many many many thanks.


    HTML code:

    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>Untitled Document</title>
    </head>
    
    <body>
    <form method="post" action="form.php">
    <table width="573" cellpadding="5" cellspacing="0" class="txt">
    
    <tr>
    <td width="10" height="25" bgcolor="#cee39e">&nbsp;</td>
    <td  width="149" height="25" valign="middle" bgcolor="#cee39e"  class="txt"><span class="txtbold">Your Full  Name</span><span class="txtred">*</span></td>
    <td width="265" height="25" bgcolor="#cee39e">
    <input name="Name" type="text" size="35" maxlength="40" />
    </td>
    <td width="107" bgcolor="#cee39e">&nbsp;</td>
    </tr>
    
    
    <tr>
    <td height="25" bgcolor="#cee39e">&nbsp;</td>
    <td  height="25" valign="middle" bgcolor="#cee39e" class="txt"><span  class="txtbold">Email </span><span  class="txtred">*</span></td>
    <td height="25" bgcolor="#cee39e">
    <input name="Email" type="text" size="35" maxlength="50" />
    </td>
    <td bgcolor="#cee39e">&nbsp;</td>
    </tr><tr>
    <td height="25" bgcolor="#cee39e">&nbsp;</td>
    <td  height="25" colspan="2" valign="middle" bgcolor="#cee39e"  class="txt"><span class="txtbold">What would you like us to  supply:
    Last edited by ralph.m; Nov 1, 2011 at 20:06. Reason: added code tags

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    23,598
    Mentioned
    411 Post(s)
    Tagged
    6 Thread(s)
    Hi suensh. I've moved this to the main PHP forum, as you are much more likely to get a reply here than in the course forum.

    What we need to see here is your PHP code.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •