Page 1 of 2 12 LastLast
Results 1 to 15 of 24
  1. #1
    4 Star Lounger
    Join Date
    Jul 2006
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Errors with CGI script

    I am getting an error running a cgi script, see attached for error message and html file.

    Also is there a way to validate the form so that Name and email address are mandatory and if the user clicks on 'Submit' and misses these details out a message is shown.
    Attached Files Attached Files

  2. #2
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Errors with CGI script

    The only part of the code that is pointing to script is in line 4:

    <form action="/cgi-bin/formmail/formmail.cgi" method="post">

    Can we assume that the cgi script is in that location?
    Jerry

  3. #3
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Errors with CGI script

    Have you checked with your web host about how to refer to formmail.cgi in your form. My experience is that they all want you to do it slightly different ways.

    You can validate your form using Javascript. here is an example.

    You can find lots of others by doing a google search on Javascript validation .
    Regards
    John



  4. #4
    4 Star Lounger
    Join Date
    Jul 2006
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Errors with CGI script

    I was unable to find anything in on my hosting company:

    http://www.memebot.com

    I don't really know what l am looking for could you possibly look and see if you see anything useful.

    If you are unable to find any details how do you suggest l proceed?
    As l have not got a clue how to get this form to work, firstly l do not have a javascript!
    Where do l get one and what code is in the form?

  5. #5
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Errors with CGI script

    It seems that your provider does not provide any scripts - you just upload your own to your cgi-bin.

    Here is some stuff from your provider on the subject of "Why don't my scripts work?"

    Are your sure that the formmail.cgi file is inside a formmail folder ?

    Javascript is not something you need to get. It is just a language you can use when you write the code for your page. The first example I linked to had a pile of it that you could just cut and paste into your page.
    Regards
    John



  6. #6
    4 Star Lounger
    Join Date
    Jul 2006
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Errors with CGI script

    I don't have a formmail.cgi file , as l don't know what coding is in it? Please can you assist me , looked at example but am still unclear what exactly goes in this file.

    I know where the file is to go, it is just a matter of the coding now.

    Which l have not got clue with!

  7. #7
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Errors with CGI script

    Formmail.cgi is a pre-written file you can download, and install. Don't try to write your own. Search for it at Google and you will find it in lots of place.

    But instead have a look at Mail MY form .

    They provide free form processing, and wizards that will help write the form for you.

    Much easier than trying to do it yourself.
    Regards
    John



  8. #8
    4 Star Lounger
    Join Date
    Jul 2006
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Errors with CGI script

    Many thanks for that, much appreciated.

  9. #9
    4 Star Lounger
    Join Date
    Jul 2006
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Errors with CGI script

    I have spent ages searching google and cannot find a site which has formmail.cgi.

    The only sites l could find are those which generate forms for you, which is not want l want.

    I just want a formmail.cgi file l can upload, please please could someone help me out.

  10. #10
    Plutonium Lounger Leif's Avatar
    Join Date
    Dec 2000
    Location
    U.K.
    Posts
    14,010
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Errors with CGI script

    The first three hits on this Google search all appear to have something for you to download - what were you searching for?

  11. #11
    4 Star Lounger
    Join Date
    Jul 2006
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Errors with CGI script

    I checked this web sites and could not find any where on the site where you can download a formmail.cgi file. Please can you send me the url when within these sites where l can download such a file?

  12. #12
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Errors with CGI script

    Try this http://nms-cgi.sourceforge.net/scripts.shtml

    Choose the compat package

    You can get a zipped version of formmail.pl

    You will need to change the form code to refer to it as formmail.pl rather than formmail.cgi

    CGI programs are often written in the language pearl, so theyb often have the extension pl.
    Regards
    John



  13. #13
    4 Star Lounger
    Join Date
    Jul 2006
    Posts
    531
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Errors with CGI script

    Hello,

    I have uploaded file and called it formmail.pl, l have set chmod permissions and have ensured path to formmail is correct in html file, but still l am getting errors!

    See attachment for html file and cgi file l am using. The host l am using is www.memebot.com

    Any help would really be appreciated.

    See attached for error, any help would be appreciated.
    Attached Files Attached Files

  14. #14
    Super Moderator
    Join Date
    Jun 2002
    Location
    Mt Macedon, Victoria, Australia
    Posts
    3,993
    Thanks
    1
    Thanked 45 Times in 44 Posts

    Re: Errors with CGI script

    Sorry I have no idea what that error means or how to fix it.

    One of the reasons I suggested you use a site like MailMyform is that they remove the need for you to have your own copy of formmail.pl. They provide the form processing for you. You build a form and it will work first time.
    Regards
    John



  15. #15
    Platinum Lounger
    Join Date
    Feb 2002
    Location
    A Magic Forest in Deepest, Darkest Kent
    Posts
    5,681
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Errors with CGI script

    I put this down to your host I'm afraid, it is nothing to do with the code you have provided us. Some web hosts have installed CGIWrap, a program that controls the privileges of CGI scripts that are running on their servers.

    Have a look at CGIWrap errors and then get on to your provider, they will be able to assist more I feel.
    Jerry

Page 1 of 2 12 LastLast

Posting Permissions

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