Results 1 to 6 of 6

Thread: Email/Press Form

  1. #1
    Join Date
    Apr 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Email/Press Form

    I know this is very simple, but I deal in flash always and HTML is over my head. I need to have a press form with

    Companys Name
    Companys Address
    Reps Name
    Companys Phone
    Contact Email

    and have a submit button to send all this information to a specific email address?
    Any help?

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

    Default

    the form's coding is really simple, then you need to figure out how to deal with the data... where it's sent.

    <form action="NEXTPAGE*" method="post">
    Company name: <input type="text" name="co_name">
    <br>Companys Address: <input type="text" name="co_addr">
    <br>Reps Name: <input type="text" name="rep_name">
    <br>Companys Phone: <input type="text" name="co_phone">
    <br>Contact Email: <input type="text" name="email">
    <br><input type="send" value="Send!">
    </form>


    *Where it says NEXTPAGE, just put the url of the page that will interprate the form.
    If you want to write it yourself, dive into php, but that's way above html, so if you don't like html, you'll hate php.
    If you want, just find a free form mailer through google... lots of them, easy enough to setup... they just give you a link to use as the nextpage, and some instructions (like maybe a hidden address field that'll tell it to send to you... that type of thing)
    Or, you can just make the "URL"/nextpage, be set to: "mailto:your@email.com" but that doesn't work for everyone (it uses the default mail client, and that can have issues... not the best route, but easiest to code)

    There's a start for you.

  3. #3
    Join Date
    Apr 2006
    Posts
    22
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Check with your web host/server. Many come with a forms application already installed. In some cases, it's already enabled; in others, one click on a control panel and it's enabled. If one is not installed or easily enabled, talk to your support folk. In most cases, they will take care of you as forms are probably the most common request.

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

    Default

    Good point. That's easy.

    In that case, it should just work like that, with my html above, then it will automatically do it... but I wouldn't know what page to use as "NEXTPAGE"... maybe leave it blank and it defaults (not sure though).

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    If you use a blank action attribute, the data will be sent to the current page.
    If the host sets something up, they'll supply a URI to a page to which one should post the data.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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

    Default

    Sure, that would make sense.
    Just wasn't sure.
    the only time I used a form processor from the host was at geocities way back when, and that just did it for me (but I don't think I touched the code... I was using their online editor), so felt like it was leaving that blank... but... yeah.

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
  •