html - PHP form to send email from Website -


this html form requesting feedback.

what corresponding php form place on webserver send email? new @ website design , have learnt css+ html.

<table width="518" border="0">           <tr>             <td width="165"><form name="form1" method="post" action="">               <label for="nameco">name/company</label>             :             </form></td>             <td width="343"><input name="nameco" type="text" id="nameco" size="70"></td>           </tr>           <tr>             <td><form name="form2" method="post" action="">               <label for="area">area located :</label>             </form></td>             <td><input name="area" type="text" id="area" size="70"></td>           </tr>           <tr>             <td><form name="form3" method="post" action="">               products interested in :             </form></td>             <td><table width="198">               <tr>                 <td width="190"><label>                   <input type="radio" name="product" value="awnings" id="product_0">                   awnings</label></td>                 </tr>               <tr>                 <td><label>                   <input type="radio" name="product" value="carport" id="product_1">                   carport/shadeport</label></td>                 </tr>               <tr>                 <td><label>                   <input type="radio" name="product" value="patio" id="product_2">                   patio</label></td>                 </tr>               <tr>                 <td><label>                   <input type="radio" name="product" value="other" id="product_5">                   other                   <input type="text" name="other1" id="other1">                   </label></td>                 </tr>             </table></td>           </tr>           <tr>             <td><form name="form4" method="post" action="">               <label for="contactno">contact number :</label>             </form></td>             <td><input name="contactno" type="text" id="contactno" size="70"></td>           </tr>           <tr>             <td><form name="form5" method="post" action="">               <label for="email">email address :</label>             </form></td>             <td><input name="email" type="text" id="email" size="70"></td>           </tr>           <tr>             <td><form name="form7" method="post" action="">               <label for="comments">additional comments :</label>             </form></td>             <td><input name="comments" type="text" id="comments" size="70"></td>           </tr>           <tr>             <td><form name="form8" method="post" action="">               <input type="submit" name="submit" id="submit" value="submit">             </form></td>             <td><form name="form9" method="post" action="">               <input type="submit" name="reset" id="reset" value="reset form">             </form></td>           </tr>         </table> 

this dreamweaver. , how let form know send via php file?

if can give advise, don't use many forms, use 1 , set action in send.php.

send.php can this:

<?php $to = "$_post['email']"; $subject = "$_post['subject']"; $message = "$_post['message']"; $from = "your@email.com"; $headers = "from:" . $from; mail($to,$subject,$message,$headers); echo "mail sent."; ?> 

Comments

Popular posts from this blog

html5 - What is breaking my page when printing? -

c# - must be a non-abstract type with a public parameterless constructor in redis -

ajax - PHP/JSON Login script (Twitter style) not setting sessions -