• Errors with CGI script

    Author
    Topic
    #450972

    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.

    Viewing 1 reply thread
    Author
    Replies
    • #1109135

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

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

    • #1109267

      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 .

      • #1109300

        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?

        • #1109302

          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.

          • #1109303

            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!

            • #1109304

              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.

            • #1109305

              Many thanks for that, much appreciated.

            • #1109427

              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.

            • #1109434

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

            • #1109435

              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?

            • #1109550

              Try this http://nms-cgi.sourceforge.net/scripts.shtml%5B/url%5D

              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.

            • #1109559

              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 http://www.memebot.com

              Any help would really be appreciated.

              See attached for error, any help would be appreciated.

            • #1109630

              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.

            • #1109631

              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.

            • #1109641

              On changing the file extension to .cgi , which l think is causing the problem
              l now get another error, see attached.

              I will contact my hosting company and see if they can assist

            • #1109651

              Look in the ReadMe file that came with the script. It explains what referers are, and what you need to do with them.

              Note that is exactly what the error message above tells you to do!

              This is one of a number of things included with the script to stop it being for spam by other people.

            • #1109652

              I have done this but have not a clue when it is on about?

              I am a novice on these issues and the readme files means nothing to me when l read it

              Could you assist please?

            • #1109654

              This is why I keep suggesting you use SubmitMyForm. Why don’t you just do that and avoid all the hassle of trying to configure CGI scripts? At least acknowledge the suggestion and explain why you won’t use it.

              If you read the actual text of the script, you will see near the top a line that begins @referers.

              As the error says, you need to add xventures.membot.com to that.

            • #1109661

              I have done that and still error, l prefer to learn more by doing things myself rather than auto generate forms. Also l have got this far and l am not going to start again, prefer to carry and not give up.

              See attached for new form l am using which is same one friend is using as it works on his PC.
              I am using this form as it works for him, rather than use one which might not work.

            • #1109794

              I think l will use SubmitmyForm, can you tell me website?
              As l have not heard anything from my hosting company who should be able to assist me.

              How does SubmitmyForm work, if it does not use CGI, as l cannot get a CGI form to work on my hosting space? As my hosting company inform me that sometimes CGI forms may not work, due to the way the hosting company is configured.

              Please can you explain?

            • #1109847

              I gave you the address when I told you about SubmitMyform.

              It still uses cgi, but you don’t need your own copy. The scripts are on SubmitMyForm’s server.

            • #1109879

              Hello,

              I have some questions:

              1. Will this work using memebot hosting: http://www.memebot.com?
              If you are unable to find out or don’t know l will using response-matic but use my old hosting company as using this form type worked fine with them.

              Could maybe test this form using memebot using, as l don’t want to design form using Submitmyform website only to find out l have wasted my time and it does not work.

              2. Does this use same form types as respons-o-matic website?, if it does then it will not work with memebot hosting, as l have tried a similar form before on my current hosting company and no luck.

            • #1109889

              As far as I know it works with any host.
              Just test it yourself. It does not take long to put together a basic form.

              I don’t have an account at memebot as I don’t a site there, and don’t want to set one up.

    Viewing 1 reply thread
    Reply To: Errors with CGI script

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: