+ Reply to Thread
Results 1 to 5 of 5

Thread: E-mail form

  1. #1
    Barn Enthusiast sbenj69 is a jewel in the rough sbenj69 is a jewel in the rough sbenj69 is a jewel in the rough sbenj69 is a jewel in the rough sbenj69's Avatar
    Join Date
    Mar 2008
    Location
    The frigid northern plains
    Posts
    432
    Rep Power
    7

    E-mail form

    As many of you know, I'm very new to web-dev. I've been getting by ok by keeping it simple. I've run into a little bit of a dilemna here. Take this code:
    Code:
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    
    </head>
    <body>
    
    <form name="visit" id="visit" action="mailto:myname@emailaddress.com" method="post">
    <tr>
    		<td colspan="2"><select name="overall-" class="dropdown"  tabindex="1">
    				<option label="Choose Below" value="">--- Choose Below ---</option>
    				<option value="excellent">Excellent
    				<option value="aboveAverage">Above Average
    				<option value="average">Average
    				<option value="belowAverage">Below Average
    				<option value="poor">Poor
    				</select></td>
    </tr>
    
    <tr>
    		<td colspan="2"><h2><input type="submit" name="submit" onClick="validate();return returnVal;" value="Submit" class="button" >&nbsp;&nbsp;&nbsp;<input type="reset" ID="Reset1" NAME="Reset1" class="button"></h2></td>
    </tr>
    
    </form>
    
    </body>
    
    </html>
    
    This basically emails the form to the email address listed. However, using this method, first of all, they have to have an email client set up, and secondly, it gives 2 warning boxes you must click to continue. I want a nice and quiet submission. Keep in mind, I'm new, so talk to me like I are st00pid, cuz, well, I am. I've been looking at some cgi scripts, but don't know how to call them correctly, I guess, because it just shows the code.
    Join our Folding team: DeveloperBarn Folding
    -----------------------------------
    Folding Stats - Stanford University
    Folding Stats - Extreme Over-Clocking
    Folding Stats - Kakao Stats
    Folding Stats - Xtreme CPU

    -----------------------------------

  2. #2
    Administrator richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich is a splendid one to behold richyrich's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere only we know...
    Posts
    3,207
    Blog Entries
    14
    Real Name
    Rich
    Rep Power
    14

    What code can your server handle? ASP, PHP, .NET?

  3. #3
    Barn Enthusiast sbenj69 is a jewel in the rough sbenj69 is a jewel in the rough sbenj69 is a jewel in the rough sbenj69 is a jewel in the rough sbenj69's Avatar
    Join Date
    Mar 2008
    Location
    The frigid northern plains
    Posts
    432
    Rep Power
    7

    PHP for sure, as that's what's on it now.
    Join our Folding team: DeveloperBarn Folding
    -----------------------------------
    Folding Stats - Stanford University
    Folding Stats - Extreme Over-Clocking
    Folding Stats - Kakao Stats
    Folding Stats - Xtreme CPU

    -----------------------------------

  4. #4
    The Barnfather jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead has much to be proud of jmurrayhead's Avatar
    Join Date
    Mar 2008
    Location
    Reston, VA
    Posts
    4,547
    Blog Entries
    9
    Real Name
    Jason
    Rep Power
    22

    Here's a couple simple PHP mail scripts for you to check out:

    What is PHP? Simple PHP mail script
    How to Send Email from a PHP Script - About Email
    jmurrayhead
    If you agree, give me rep.
    If you like it here...throw us a few bones to help support us.


  5. #5
    Barn Enthusiast sbenj69 is a jewel in the rough sbenj69 is a jewel in the rough sbenj69 is a jewel in the rough sbenj69 is a jewel in the rough sbenj69's Avatar
    Join Date
    Mar 2008
    Location
    The frigid northern plains
    Posts
    432
    Rep Power
    7

    Just what I needed, thanks!!
    Join our Folding team: DeveloperBarn Folding
    -----------------------------------
    Folding Stats - Stanford University
    Folding Stats - Extreme Over-Clocking
    Folding Stats - Kakao Stats
    Folding Stats - Xtreme CPU

    -----------------------------------

+ Reply to Thread

Similar Threads

  1. PHP code for mail Attachment
    By sujith.it in forum PHP Development
    Replies: 1
    Last Post: July 16th, 2008, 02:53 PM
  2. VBS Send Mail
    By keep_it_simple in forum Windows Scripting
    Replies: 0
    Last Post: March 22nd, 2008, 12:58 PM
  3. ASP/VBScript Simple Mail Component Test
    By jmurrayhead in forum ASP Code Samples
    Replies: 0
    Last Post: March 20th, 2008, 10:47 AM

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

SEO by vBSEO