Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    Jul 2002
    Location
    San Jose
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    submit forms without cgi capability

    what script can I write to submit form information if my web host (Geocities) does not have cgi capabilities?

    I want to have the form info sent both to myself and to the person who filled in the form.

    OnSubmit="validateForm(this)" then what?

  • #2
    Senior Coder joh6nn's Avatar
    Join Date
    Jun 2002
    Location
    72° W. 48' 57" , 41° N. 32' 04"
    Posts
    1,887
    Thanks
    0
    Thanked 1 Time in 1 Post
    there's a very unreliable method that was designed for this purpose. you set the Form's method to post, and it's action to "mailto:you@your.com". you can have multiple recipients, and i think that's done by just sticking a comma between addresses, but i'm not sure. you should be able to find a more definite answer by searching this forum.
    bluemood | devedge | devmo | MS Dev Library | WebMonkey | the Guide

    i am a loser geek, crazy with an evil streak,
    yes i do believe there is a violent thing inside of me.

  • #3
    New Coder
    Join Date
    Jul 2002
    Location
    San Jose
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts

    email POST ACTION limited

    If I use that method, won't it limit me to sending email only to the people who's addresses are listed? My school assignment is to have ANYONE fill out my form, click submit, and the info will be sent to me AND to the person who submitted.

    Does anyone know how to get around this problem with Geocities? Since they don't allow cgi scripts, I need to come up with a solution to send these emails to whomever fills out my form.

    http://www.geocities.com/bevcuria/461.htm

    Thanks.

  • #4
    New Coder
    Join Date
    Jun 2002
    Posts
    14
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Bev, using the POST method in FORM, try this:

    <A HREF="MAILTO:bcuria@geocities.com?CC=student@myschool.edu&BCC=profjones@myschool.edu&SUBJECT=Survey Results&BODY=Thanks for responding>Submit</a>

  • #5
    New Coder
    Join Date
    Jul 2002
    Location
    San Jose
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hope,

    It still seems to me that this limits my email options. I want to have the form info sent to me plus to the person who submitted info, regardless of who they are.

    Can I write the HREF so that it will respond to the email address listed in my form?

    For example, if my form asks your name and email address, you fill it out and click submit. My script should send me and you a copy.

  • #6
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    Using mailto: in a form is going to open the users email program and use that to send the email so they will already have a copy of it as long as they are keeping copies of their sent emails.

    Also note bcuria this is YOUR homework assignment so you should be doing it not someone else. This forum is not for having your homework done for you. Once you have something written and you get stuck and have specific questions we will guide in the right direction.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #7
    New Coder
    Join Date
    Jul 2002
    Location
    San Jose
    Posts
    19
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Spookster,

    My apologies. :-(

    I wasn't trying to get the entire code, I was just trying to find a workaround to solve the issue in the assignment that asks us to use cgi and formmail.pl . I already wrote the script for validating my form, the only problem is in trying to get the submit to show the submitter and myself that the form worked (which is why I am trying to find a workaround for a lack of cgi capabilities).

    Wasn't trying to be lazy!

  • #8
    Supreme Overlord Spookster's Avatar
    Join Date
    May 2002
    Location
    Marion, IA USA
    Posts
    6,278
    Thanks
    4
    Thanked 83 Times in 82 Posts
    It's okay. So the teacher gave an assignment requiring use of a CGI bin and didn't supply the necessary tools to complete the assignment? That's not very nice.

    Try a different free web host. There are many around. Do a search of the forums for free web hosts and it will turn up something you can use so that you can have access to a CGI bin.
    Spookster
    CodingForums Supreme Overlord
    All Hail Spookster

  • #9
    Regular Coder
    Join Date
    Jul 2002
    Location
    Kansas, USA
    Posts
    487
    Thanks
    0
    Thanked 54 Times in 53 Posts

    Lightbulb

    You can have the form sent to an unspecified email address easily enough... depending on your level of JavaScript skill.

    First add an additional field in your form for the visitor to enter his/her email address.

    In your form validation script, test for the existence of a valid email address in this field (should probably be a fairly rigorous test unless you trust your visitors). If the test passes (i.e. there's a valid email address there), use string manipulation to insert that email address into form.action. (Hint: split form.action into two pieces where you need to add the email, then join the two pieces with the email address.)

    Let me know if you need more help with this.

    -kansel


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •