Hi,

I've designed a site in Dreamweaver (HTML). I have a form and included a submit button. It's very simple, but I need to get it to e-mail to an address and thank someone for submitting their information. Please can someone help me. So far my form looks like this. I seem to be able to find lots of script but don't know where to insert it and where to include the address. Thank you Heath...

<form name="form2" method="post" action="">
                  <p>Name 
                    <label>
                    <input type="text" name="textfield">
                    </label>
                  </p>
                  <p>Surname 
                    <label>
                    <input type="text" name="textfield2">
                    </label>
                  </p>
                  <p>Date check in  <span class="style90">
                    <select name="select">
                      <option>1</option>
                      <option>2</option>
                      <option>3</option>
                      <option>4</option>
                      <option>5</option>
                      <option>6</option>
                      <option>7</option>
                      <option>8</option>
                      <option>9</option>
                      <option>10</option>
                      <option>11</option>
                      <option>12</option>
                      <option>13</option>
                      <option>14</option>
                      <option>15</option>
                      <option>16</option>
                      <option>17</option>
                      <option>18</option>
                      <option>19</option>
                      <option>20</option>
                      <option>21</option>
                      <option>22</option>
                      <option>23</option>
                      <option>24</option>
                      <option>25</option>
                      <option>26</option>
                      <option>27</option>
                      <option>28</option>
                      <option>29</option>
                      <option>30</option>
                      <option>31</option>
                    </select>
                  </span><span class="style90">
                  <select name="select2">
                    <option>January</option>
                    <option>February</option>
                    <option>March</option>
                    <option>April</option>
                    <option>May</option>
                    <option>June</option>
                    <option>July</option>
                    <option>August</option>
                    <option>September</option>
                    <option>October</option>
                    <option>November</option>
                    <option>December</option>
                  </select>
                  </span><span class="style90">
                  <select name="select3">
                    <option>2008</option>
                    <option>2009</option>
                    <option>2010</option>
                  </select>
                  </span></p>
                  <p>Date check out <span class="style90">
                    <select name="select8">
                      <option>1</option>
                      <option>2</option>
                      <option>3</option>
                      <option>4</option>
                      <option>5</option>
                      <option>6</option>
                      <option>7</option>
                      <option>8</option>
                      <option>9</option>
                      <option>10</option>
                      <option>11</option>
                      <option>12</option>
                      <option>13</option>
                      <option>14</option>
                      <option>15</option>
                      <option>16</option>
                      <option>17</option>
                      <option>18</option>
                      <option>19</option>
                      <option>20</option>
                      <option>21</option>
                      <option>22</option>
                      <option>23</option>
                      <option>24</option>
                      <option>25</option>
                      <option>26</option>
                      <option>27</option>
                      <option>28</option>
                      <option>29</option>
                      <option>30</option>
                      <option>31</option>
                    </select>
                  </span><span class="style90">
                  <select name="select9">
                    <option>January</option>
                    <option>February</option>
                    <option>March</option>
                    <option>April</option>
                    <option>May</option>
                    <option>June</option>
                    <option>July</option>
                    <option>August</option>
                    <option>September</option>
                    <option>October</option>
                    <option>November</option>
                    <option>December</option>
                  </select>
                  </span><span class="style90">
                  <select name="select10">
                    <option>2008</option>
                    <option>2009</option>
                    <option>2010</option>
                  </select>
                  </span></p>
                  <p>Tel no. 
                    <label>
                    <input type="text" name="textfield8">
                    </label>
                  </p>
                  <p>Fax no. 
                    <label>
                    <input type="text" name="textfield9">
                    </label>
                  </p>
                  <p>Cell no.
                    <label>
                    <input type="text" name="textfield10">
                    </label>
                  </p>
                  <p>E-mail address 
                    <label>
                    <input type="text" name="textfield11">
                    </label>
                  </p>
                  <p>Confirmation of e-mail address 
                    <label>
                    <input type="text" name="textfield12">
                    </label>
                  </p>
                  <p>Comments / special requirements 
                    <label>
                    <textarea name="textarea2"></textarea>
                    </label>
</p>
                  <p>
                    <input name="Submit" type="submit" onClick="MM_goToURL('parent','mailto: [email]peter@picco.co.za[/email]');return document.MM_returnValue" value="Send">
                  </p>
                  <p>&nbsp;</p>
                  <p>&nbsp;</p>

Hi ,

Can you please explain "but I need to get it to e-mail to an address and thank someone for submitting their information."

Hi Vicky,

Thanks for the response :) I have a "send" button at the bottom of my form, but in HTML (currently) can only get it to create an e-mail. I would like the script to insert so when someone clicks on the send button, it e-mails my client the information from the form.

Does that help?
Heath

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.