Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 7 of 7
  1. #1
    Junior Member
    Join Date
    Aug 2005
    Posts
    3
    Member #
    11125
    can someone tell me how to make a webpage that lets people fill out information and when they click on "submit" it automatically send the info to my email address without them knowing it

  2.  

  3. #2
    Junior Member
    Join Date
    Aug 2005
    Posts
    3
    Member #
    11125
    i need help badly

  4. #3
    Senior Member
    Join Date
    Aug 2003
    Posts
    444
    Member #
    2801
    Hi

    You need a form mailer. There are lots and lots of them. Look at hotscripts.com and try this google search: http://www.google.co.uk/search?q=for...en-US:official


    Also, try to wait more than a minute before asking for help again - give us time to reply
    eKstreme
    eKstreme.com - Free website tools!
    fontfox - free fonts Hand-picked quality fonts.

  5. #4
    Senior Member Fallout's Avatar
    Join Date
    Aug 2003
    Location
    Richmond, Virginia
    Posts
    543
    Member #
    2748

  6. #5
    Member jddesigns's Avatar
    Join Date
    Aug 2005
    Location
    Tucson, AZ
    Posts
    30
    Member #
    11038
    http://www.brainjar.com/asp/formmail/


    Go here, this is a very simple one that steps you through all steps.
    Jeff

    JD Designs
    http://j-ddesigns.com

  7. #6
    Senior Member igeek's Avatar
    Join Date
    Oct 2005
    Posts
    202
    Member #
    11644
    submitting a form that emails

    if you can do this in php here is how to make a simple email form.

    The php script
    Code:
    <?php
    
    //find out if form button has been submitted//
    
    if(isset($_POST['submit'])){
    	if (!empty($_POST['title'])) {
    		$t = $_POST['title'];
    	} else {
    		$t = '';
    	}
    	if (!empty($_POST['email'])) {
    		$e = $_POST['email'];
    	} else {
    		$e = '';
    	}
    	// Check for a URL title.
    	if (!empty($_POST['textarea'])) {
    		$ta = $_POST['textarea'];
    	} else {
    		$ta = '';
    
    	}
    
    //check for a valid email address it must contain and @//
    
    if(preg_match("/@/i", $_POST['email'])){
    $e = $_POST['email'];
    }else{
    $e= ""
    }
    
    //check that all required fields have been entered if it passes the email function will be executed//
    
    if(@$t && @$ta && @$e){
    
    //mail() function in php//
    mail("recipient@theurl.com", "Email title goes here", "\n"."Title:".$t."\n"."Email:".$e."\n"."Comments:".$ta);
    	}
    }else{
    
    }
    ?>

    the html form
    Code:
    <form name="myform"  method="post" action="yourpagename.php" >
    <br />
    <input align="middle" type="text" align="left" size="50"   height="30" border="1" name="title" style="border: 1px solid #cccccc; "/>
    <br />
    <strong>Title&nbsp;</strong><br />
    <br />
    <input align="middle" type="text" align="left" size="50"   height="30" border="1" name="email" style="border: 1px solid #cccccc; "/>
    <br />
    <strong>Email&nbsp;</strong><br />
    <small>Please send your comments</small>&nbsp;<br />
    <br />
    <textarea name="textarea" rows="5" cols="45"  style="border: 1px  solid #cccccc;"></textarea><br />
    </p>
    
    <p>
    <input type="submit" name="submit" value="Submit" class="navinput" onmouseover="this.className='input input'" onmouseout="this.className='navinput'"/>
    </p>
    </form>

  8. #7
    Senior Member
    Join Date
    May 2003
    Location
    UK
    Posts
    2,354
    Member #
    1326
    Maybe trim it before checking if a var is empty as an if empty check on $var when $var = " " returns false.


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 06:22 PM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com