www.webdeveloper.com
Results 1 to 4 of 4

Thread: Form send to email

  1. #1
    Join Date
    Mar 2005
    Posts
    17

    Form send to email

    Hi
    So i'm making a form, so people can send me comments, but it's not working!!!!

    Here is my code for the form.html
    Code:
    <html>
    <!-- Created on: 4/3/2005 -->
    <head>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      <title>Thank you!</title>
      <meta name="description" content="">
      <meta name="keywords" content="">
      <meta name="author" content="Unregistered User">
      <meta name="generator" content="AceHTML 6 Pro">
    </head>
    <html>
    <head>
    <title>JnTeam - Welcome to our site!</title>
    <div id="pageheader" style="background: cyan">
    <body bgcolor="black">
    <h1>JnTeam</h1>
    <h4>The greatest new site on the net!
    </div><br>
    <h />
    <button onclick="window.location='http://jnteam.bravehost.com'" style="background: lime; border: medium; bottom: auto; font: bold">Home</button>      
    &nbsp;&nbsp;&nbsp; <button onclick="window.location='http://jnteam.goldeye.info'" style="background: lime; border: medium; bottom: auto; font: bold">Forum</button>
    <form action="http://jntsite.goldeye.info/sendmail.php" method="POST">
    <a style="color: lime" ><b>What do you think of our Site?</b></a>
    <P>
    <INPUT TYPE="radio" checked="true" NAME="rate" VALUE="It's_Great">
    <a It style="color: lime">It's great</a>
    <INPUT TYPE="radio" NAME="rate" VALUE="It_stinks" > 
    <a It style="color: lime">It Stinks!</a>      
    <br />         
    <p><b><a style="color: lime"> Email:</a></b><br>
    <input type="text" name="email" size=40>
    <p><b><a style="color: lime"> Subject:</a></b><br>
    <input type="text" name="subject" size=40>
    <p><b><a style="color: lime"> Message:</a></b><br>
    <textarea cols=40 rows=10 name="message"></textarea><br><br>
    &;&;&;&;&;&;&;&;<input type="submit" value=" Send ">
    </form>
    
     
    </body>   
    </html>
    here is the code for sendmail.php
    Code:
    <?
      $email = $_REQUEST['email'] ;	   
      $subject= $_REQUEST['subject'];
      $message = $_REQUEST['message'] ;
    
      mail( "jntsite@gmail.com", "Feedback Form Results", $subject, $message, "From: $email" );
      header( "Location: http://jntsite.goldeye.info/Thankyou.html" );
    ?>

    Then i made my Thankyou.html, but i don't think i need to show u that.

    Everything works fine, but i never get an email.!!!!

    thanks

  2. #2
    Join Date
    Dec 2003
    Location
    A series of tubes known as the "internets"
    Posts
    2,166
    try using this script:
    http://www.webdevfaqs.com/php.php

  3. #3
    Join Date
    Mar 2005
    Posts
    17
    I'll try it when i get the chance. Thanks

  4. #4
    Join Date
    Dec 2003
    Location
    A series of tubes known as the "internets"
    Posts
    2,166
    no problem. it was written by Ryan Brill, a moderator here that goes by the handle "pyro." i use it on my site - it works wonderfully.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles