need script for mail form

Discussion in 'PHP' started by Top$hottEr, Mar 9, 2008.

  1. #1
    hi i have a basic form in xhtml and i want the content of the form to be e-mailed to a certain e-mail can anyone help
     
    Top$hottEr, Mar 9, 2008 IP
  2. 00johnny

    00johnny Peon

    Messages:
    149
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    00johnny, Mar 9, 2008 IP
  3. dhunmaari

    dhunmaari Active Member

    Messages:
    306
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    this is simple example
    <form action="mailto:nobody@nobody.com" method="post" enctype="text/plain">
    
    <table width="80%" border="0" cellspacing="0" cellpadding="2">
    
    <tr>
    
    <td width="35%">
    
    <div align="right"><b>Name:</b></div>
    
    </td>
    
    <td width="65%">
    
    <input type="text" name="name" size="15">
    
    </td>
    
    </tr>
    
    <tr>
    
    <td width="35%">
    
    <div align="right"><b>Email:</b></div>
    
    </td>
    
    <td width="65%">
    
    <input type="text" name="email" size="20">
    
    </td>
    
    </tr>
    
    <tr>
    
    <td width="35%">
    
    <div align="right"><b>Comment:</b></div>
    
    </td>
    
    <td width="65%">
    
    <textarea name="comment" cols="25" wrap="virtual" rows="3"></textarea>
    
    </td>
    
    </tr>
    
    <tr>
    
    <td width="35%">&nbsp;</td>
    
    <td width="65%">
    
    <input type="submit" name="Submit" value="Submit">
    
    <input type="reset" name="reset" value="Reset">
    
    </td>
    
    </tr>
    
    <tr>
    
    <td width="35%">&nbsp;</td>
    
    <td width="65%">&nbsp;</td>
    
    </tr>
    
    </table>
    
    </form>
    Code (markup):
     
    dhunmaari, Mar 10, 2008 IP