Results 1 to 8 of 8

Thread: Simple Form

  1. #1
    Join Date
    Oct 2007
    Location
    Nicaze
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Simple Form

    Hi every1,

    I*v searched alot but didnt find anything like i need.


    Aint nothing special, that would be a "something.php" file, i would know how to edit and add more fields just need the basic code for that on the pic.

    The "send" button saves the info entered and sends to a email or web.

    Any1 help?

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    Right here Not the most secure or the most fancy, but it works.
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

  3. #3
    Join Date
    Oct 2007
    Location
    Nicaze
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by BLiZZaRD View Post
    Right here Not the most secure or the most fancy, but it works.
    Thank you very thats exactly what i needed
    But still there is one more problem, the button "submit"
    <INPUT TYPE="submit">

    When i click on it then my mail client opens in a attempt to send the form:/

    I dont want that to happen to other users, i want it to mail to me, but when you click on submit it goes to another page or the same doesnt matter ,just that it doesnt open the mail client?

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    You have several options:

    action="mailto:me@my.com"
    Bad, for the reasons you just noted.

    action="http://outsidesite.com/free/form/mailer.htm"
    Ok, and just search google for one that will work. But it's going to have ads in the email, etc. Not too customizable, but sometimes they have a custom next page.

    action="mypage.php"
    Using PHP you could parse the form yourself and send it to a specific page if it works, after sending the email message (just in PHP using the mail() function).
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Oct 2007
    Location
    Nicaze
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    The 3 step i assume it needs more coding right? (creating a php file that i link or not? )

    The 2 step i dont care if ads in my mail are if the content of the form will be shown(thats the most important) but could not find such web page, did find some sites but they are offering a form creator, then download etc...

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Yes, the 3rd option would require you code a page in PHP or another language.

    The 2nd requires a site that does the same, but would already be setup. Google "free form mailer" and you'll get enough results.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  7. #7
    Join Date
    May 2006
    Location
    Sydney, Australia - Near the coast.
    Posts
    1,995
    Thanks
    0
    Thanked 8 Times in 7 Posts

    Default

    Peter - alotofstuffhere[dot]com - Email Me - Donate via PayPal - Got spare hardware? Donate 'em to me :) Just send me a PM.
    Currently: enjoying the early holidays :)
    Read before posting: FAQ | What you CAN'T do with JavaScript | Form Rules | Thread Title Naming Guide

  8. #8
    Join Date
    Oct 2007
    Location
    Nicaze
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Ty very much, i didnt expect such help
    For every1 who wants the same this is the ultimate combination

    Quote Originally Posted by tech_support View Post
    Just edit as necessary. I'm going to host the e-mailer script. (Don't worry, no ads here )
    HTML Code:
    <form name="form" action="http://www.alotofstuffhere.com/scripts/emailer.php" method="post">
      <p><label>Name: <input type="text" name="name"></label></p>
      <p><label>Address: <input type="text" name="address"></label></p>
      <p><label>Phone Number: <input type="text" name="phone"></label></p>
      <p><label>E-Mail: <input type="text" name="email"></label></p>
      <p><label><input type="submit" name="_Submit" value="Submit"></label></p>
      <p>
        <label><input type="hidden" name="_email" value="*******************"></label>
    	<label><input type="hidden" name="_message" value="Thanks for submitting this form."></label>
    	<label><input type="hidden" name="_footer" value="Regards, Your Company."></label>
    	<label><input type="hidden" name="_subject" value="Your Company."></label>
    	<label><input type="hidden" name="_callit" value="Your Company"></label>
    	<label><input type="hidden" name="_redirect" value="http://www.google.com.au/"></label>
      </p>
    </form>
    Note the _ means a non-parsed (meaning that It won't get sent in the e-mail) line.

    Dictionary
    _email = From
    _message = Beginning of the message
    _footer = End of the message
    _Submit = The button 'Submit' (DO NOT CHANGE THE SUBMIT BUTTON NAME.)
    _subject = Subject of the message
    _callit = Whatever you want to call yourself (eg. "You have recieved a new message from ..." instead of the e-mail)
    _redirect = Where you want to be redirected afterwards. Please include the FULL URL.

    Quote Originally Posted by BLiZZaRD View Post
    Right here Not the most secure or the most fancy, but it works.
    Cheers.

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
  •