Results 1 to 3 of 3

Thread: Feedback Form

  1. #1
    Join Date
    Jul 2009
    Location
    Washington (USA)
    Posts
    94
    Thanks
    3
    Thanked 3 Times in 3 Posts

    Question Feedback Form

    Hello,

    Could someone help me? I'm trying to make a simple feedback form that will send me it's contents in an email. However, if I use the mailtoemail here) command, it opens up Microsoft Outlook. I jest want it to send me the data. Can someone help me? Here's my code:

    HTML Code:
    <form name="feedback" action="feedback-thank-you.html" onsubmit='return verifyMe();' method="post">
    <table border=0 width=100%>
    <tr>
    <td width=10% align=left><font size=4><b>Name:</b></td><td><input type="text" name="name" id="name" maxlength="20" value=""></td>
    </tr>
    <tr>
    <td width=10% align=left><font size=4><b>Email:</b></td><td><input type="text" name="email" id="email" maxlength="20" value=""></td>
    </tr>
    <tr>
    <td width=10% align=left>
    <font size=4><b>Subject:</b></td><td><select name="subject" id="subject">
    <option value="ns">--Select A Subject--</option>
    <option value="fb">Give me Feedback</option>
    <option value="rp">Report a Problem</option>
    <option value="gh">Get Help</option>
    <option value="jc">Just Chat</option>
    </select></td><td width=10%></td>
    </tr>
    <tr>
    <td width=10% valign="top"><font size=4><b>Message:</b></td><td width=50%><textarea cols=30 rows=10 name="body" id="body"></textarea></td>
    </tr>
    </table>
    <center><input type="submit" value="Send!"></center>
    </form>
    I also use this script (right before the form):
    HTML Code:
    <script language='javascript'>
    function verifyMe(){
    var msg='';
    
    if(document.getElementById('name').value==''){
    	msg+='- Name\n\n';}
    
    var email=document.getElementById('email').value;
    if(!(/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email))){
    msg+='- Invalid Email Address: '+email+'\n\n';}
    
    if(document.getElementById('email').value==''){
    	msg+='- Email\n\n';}
    
    if(document.getElementById('subject').value=='ns'){
    	msg+='- Subject\n\n';}
    
    if(document.getElementById('body').value==''){
    	msg+='- Message\n\n';}
    
    if(msg!=''){
    	alert('The following fields are empty or invalid:\n\n'+msg);
    	return false
    }else{
    	return true }
    
    }
    </script>
    Last edited by kaos; 08-23-2009 at 01:01 AM.

  2. #2
    Join Date
    Nov 2008
    Posts
    58
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Default

    You need a script (written in PHP or perl) on the web server to send the form submission through email.

    Please see: How to make a form
    and
    How to get email from an HTML form submission

  3. #3
    Join Date
    Jul 2009
    Location
    Washington (USA)
    Posts
    94
    Thanks
    3
    Thanked 3 Times in 3 Posts

    Talking Never Mind...

    It's ok... I found some other site that helped me:

    http://www.maketemplate.com/feedback/

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
  •