SitePoint Sponsor

User Tag List

Results 1 to 11 of 11

Thread: forms

  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2000
    Posts
    54
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Say I have a order form ending with:

    <input TYPE="SUBMIT" VALUE="Submit Form"> <input TYPE="RESET" VALUE="Reset Form">

    Where is it being sent to? I can't find the right spot to edit it.

  2. #2
    Skills to Pay the Bills Sparkie's Avatar
    Join Date
    Jul 1999
    Location
    A cave with 47 computers and an internet feed
    Posts
    3,559
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can edit it at the beginning, the submit buttons don't have anything to do with where the information is sent.

    For the start of your order form, you should have something like:

    <FORM ACTION = "/cgi-sys/formmail.pl" METHOD = "POST">

    And then directly below it, a hidden attribute such as:

    <input type=hidden name="recipient" value="yourname@youremail.com">

    which will tell the formmail.pl to send the information to the specified email address.

    Hope this helps!

    Sparkie

  3. #3
    SitePoint Wizard TWTCommish's Avatar
    Join Date
    Aug 1999
    Location
    Pittsburgh, PA, USA
    Posts
    3,910
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah, assuming you're using the traditional FormMail, then you'll just be using hidden fields. Took me awhile to learn how forms work too.


    ------------------
    Chris Bowyer chris@mycoding.com
    MyCoding.com: Visit for Launch Notification!
    DomainMailings.com: Who Says All The Good Ones Are Taken?
    MovieForums.com: Talk About Your Favorite Flicks!

  4. #4
    SitePoint Guru CJ's Avatar
    Join Date
    Apr 2000
    Location
    Mechelen, Belgium, Europe
    Posts
    684
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Exclamation

    When you hit the Submit button, the contents of the form will be sent with a CGI, ASP, PHP or any other script with these capabilities. It will be sent to an address the maker of the page gives or to the email that is set in the script itself.

    Most script ask to put this information on the page itself in the form of <input type="hidden" name="recipient" value="youremail@domain.com>

    Christophe

  5. #5
    SitePoint Addict
    Join Date
    May 2000
    Posts
    229
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My host uses FormMail for which I know nothing about.

    How can I learn its capabilities?

    I want to create forms with the end goal of placing a few different subject titles in the mail sent to me.

    I would also like to control the format of the mail sent to me a little. Like seperating the input objects text into paragraphs.

    Does the formMail do this? or am I needing something else?

  6. #6
    SitePoint Addict smcausland's Avatar
    Join Date
    Jul 1999
    Location
    Victoria, BC, Canada
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    <FORM ACTION="/cgi-sys/formmail.pl" METHOD="POST">
    <INPUT type="hidden" name="recipient" value="steve@treelinestudio.com">
    <INPUT type="hidden" name="subject" value="contest">
    <INPUT type="hidden" name="title" value="contest">
    <INPUT type="hidden" name="redirect" value="http://www.treelinestudio.com/thanks.html">

    This is the code for my contest entry form on one of my sites using formmail.pl.

    <FORM ACTION="" tells the browser where to find formail.pl on your server. METHOD="" Will almost always be POST.

    <INPUT type="hidden" means what it sounds like this element of the form will be hidden from the user. Name="" what your defining next in value(name="subject" value="contest".

    So if you wanted the subject line to be "hey I got an order $967,453.33 until I am a millionaire it would look like this
    name="subject" Value="ey I got an order $967,453.33 until I am a millionaire".

  7. #7
    SitePoint Addict smcausland's Avatar
    Join Date
    Jul 1999
    Location
    Victoria, BC, Canada
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sorry to split this reply but my machine keeps crashing and I wanted to make sure you got that first part ASAP. As to making it look a little diffrent when you receive it, that depends mostly on what you use for your form (checkboxes, textareas, etc..) if you need some further help with setting up your forms ask your question on the list here or email me off list and I will do what I can to help you.

    Steve C. McAusland

  8. #8
    ********* Addict
    Join Date
    Feb 2000
    Location
    NE FL, USA
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For more info on and how to use FormMail by Matt Wright, just go to http://www.worldwidemart.com/scripts/formmail.shtml.

    Mike
    Brain Bucket Magazine - Biker News, Views, and Event Coverage.

  9. #9
    Idea Developer
    Join Date
    Sep 2000
    Location
    Bethlehem, PA
    Posts
    521
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    htmlgoodies.com has a good forum tutorial.
    Professional PHP programing / Hosting
    aim: downtoi3iz icq: 74637813

  10. #10
    SitePoint Addict smcausland's Avatar
    Join Date
    Jul 1999
    Location
    Victoria, BC, Canada
    Posts
    233
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    htmlgoodies has good tutorials on nearly everything:-)

  11. #11
    SitePoint Guru
    Join Date
    Apr 2000
    Location
    Paris
    Posts
    617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)


    Pending my visit to htmlgoodies it is necessary to add that
    having your forms work properly during the site construction process is not the same thing as online. In most cases, it depends on the cgi bin of the host server as most of them have their own special procedures?



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
  •