Results 1 to 2 of 2

Thread: how to define action in form

  1. #1
    Join Date
    Mar 2010
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Smile how to define action in form

    I have designed a form to contact me , now i want to get this information but i dont understand how to make action for this form means where to put any script file , how to get it done???

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

    Default

    An "action" of a form is the thing it "does". It's just like the href of an <a> tag for a link: it's a url where the form goes. But unlike just a regular link, the form also sends the data to this page:
    <form method="get OR post" action="wherethisgoes.url">

    Then on that next page you'll use some serverside language to do stuff with the data, such as using PHP to send an email. Or you can point this to a third party website and they'll handle it for you (google "free form mailer"). You can also use action="mailto:your@email.com", but that will just open the user's email program with the data from the form: I highly recommend against this option.
    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

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
  •