in reply to Re: TKI cart
in thread TKI cart

My sub domain has its own cgi-bin and all that is relevent, this is why I do not understand why the path will not work.

I am not trying to use the cgi-bin of the main domain.

Replies are listed 'Best First'.
Re^3: TKI cart
by ww (Archbishop) on Jun 10, 2010 at 23:19 UTC
    You really need to post more complete data about the subdomain -- such as, where is its cgi-bin in relation to the page from which index.html is served... and what the structural relationship is between the page with the form and the location of your problem children. I'm looking for ASCII art or an absolutely unambiguous narrative so I can feel confident that I know what you're trying to tell me.

    At one point above, you cite what appears to be an attept to use an absolute path:

    www.mywebsite/cgi-bin/formmail.

    To me, it looks as though you've concealed the TLD for no reason or don't understand paths. And if you're using this to execute formmail.pl, formail.cgi or something else, you're either missing the file extension or have formmail.pl stashed in a subdir of cgi-bin (which your host may not have setup as an directory with executables) and have not included the executable's name at all.

    That kind of thing -- narrative that is, at best, ambiguous until you clarify, and clearly errorneous technical data like that cited above -- makes it very difficult to offer prescriptions for a fix. It's like asking an MD to prescribe when it's not clear whether you have appendicitis or food poisoning.

    And just BTW, it's a really good idea to log in, since you are a Monk... because you can't fix -- for example -- your typos in that which you post anonymously... and we can't be sure the posts actually come from you (as opposed -- for example -- from a troll trying to confuse your issues).

      Just got back to where I can try to do some work on this problem.

      I will post an entire description of what I am doing ASAP

      As you can probably guess PERL is not something I am to familiar with, thank you for your help and patience

      Monks,

      I am posting both my formmail.pl and the html for my comments page, this is the exact code for both.

      I have the formmail in the cgi-bin prior to my shopping cart, this works fine on my main site but so far whenever I try to use the form on the new site the browser says the link appears to be broken, I get no server error messages.

      BEGIN { $DEBUGGING = 1; $emulate_matts_code= 0; $secure = 1; $allow_empty_ref = 1; $max_recipients = 1; $mailprog = '/usr/sbin/sendmail -oi -t'; $postmaster = 'referral@stonebeads.com'; @referers = qw(72.167.232.53 stonebeads.com localhost); @allow_mail_to = qw(stonebeads.com slocalhost); @recipients = (); %recipient_alias = (); @valid_ENV = qw(REMOTE_HOST REMOTE_ADDR REMOTE_USER HTTP_USE +R_AGENT); $locale = ''; $charset = 'iso-8859-1'; $date_fmt = '%A, %B %d, %Y at %H:%M:%S'; $style = '/css/nms.css'; $no_content = 0; $double_spacing = 1; $wrap_text = 0; $wrap_style = 1; $send_confirmation_mail = 0; $confirmation_text = <<'END_OF_CONFIRMATION'; From: you@your.com Subject: form submission Thank you for your form submission. END_OF_CONFIRMATION # You may need to uncomment the line below and adjust the path. # use lib './lib'; # USER CUSTOMISATION SECTION # -------------------------- # Place any custom code here # USER CUSTOMISATION << END >>
      <table width=40% cellpadding=10 border=1><tr><td> <!-begin online question comment form-> <center><h4><font color="#FF0000">PLEASE FILL OUT AND SUBMIT</font></h +4> <form method="post" action="/cgi-bin/formmail.pl"> <input type=hidden name="subject" value="Check form order"> <input type=hidden name="redirect"value="http://www.stonebeads.com"> + <input type=hidden name="recipient" value="daniel@stonebeads.com"> <input type=hidden name="print_blank_fields" value="1"> <input type=hidden name="env_report" value="http_user_agent,remote_add +r"> <br> <h5> <br>Your Email address:&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name +="email address" size="35" maxlength="55" value> <br><br> YourName:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;& +nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="tex +t" name="Your Name" size="35" maxlength="45" value> <br><br> Telephone Number:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name +=" address" size="35" maxlength="55" value> <br><br> <textarea name="letter" rows="5" cols="50">Comments </textarea> <br><br><br> <center><input type="submit" value="Submit My Question or Comment"> <!-end online question comment form-> </center></td></tr></table>

        Your lack of precision and failure to provide comprehensive answers to very basic questions from those trying to help you is
          ... uh,
            ...ummmm
              ...challenging!

        Nonetheless, one thing I can say with some confidence is that the code at line 004 in what purports to be formmail.pl,

        004:   $emulate_matts_code= 0;

        strongly suggests that you are NOT using the formmail which at least two of us condemned. Then, line 018,

        018:   $style             = '/css/nms.css';

        makes it clear that you are using the NMS enhancement, albeit without the allowed customization (" From you@your.com" !?! )

        Ah... you noticed "purports to be?" Well, what you've posted is not and cannot be the complete script, formmail.pl. It's not even a complete begin block (no closing }. As it stands, it won't do anything. So let's try that part again (... or not! See below.)

        As to the html, I count at least 25 violations of the 4.01 standard -- most of which -- admittedly -- will be tolerated by many browsers. But the lack of a </form> and incorrect commenting are substantial... and make me wonder how you can tell us that this works.

        Another statement -- this one made with considerable assurance -- is that line 004 of the html:

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

        indicates that the working cgi-bin (that is what you posted, isn't it?) is in a directory directly subordinate to the root dir for the site "stonebeads.com" 1. For lack of definitive information from you, I will premise this reply on one possible apache configuration,

        apache's data dir
        |		
        |-(stonebeads') httpdocs (directory)
        |			|   |- index.html
        |			|   |- "comments page" (file containing the table you posted)
        |			|   |- other webpages ( .html, .pdf, etc. files)
        |                       |
        |                       |-cgi-bin (directory)
        |		        |   |- TKI.pl
        |		        |   |- formmail.pl
        |		        |   |- other cgi executables
        |                       |
        |                       |-css (directory - location is per formmail.pl fragment)
        |                       |
        |                       |-other stonebeads.com directories
        |
        |-other apache user (site) dirs (possibly)
        

        Now, can you provide us with a similar diagram accurately representing the relationships among Apache, stonebeads.com, and your subdomain?

        Your statement, "I have the formmail in the cgi-bin prior to my shopping cart..." also needs clarification. If you are describing the order in which formmail.pl and TKI_cart.pl appear in a directory listing, rest assured, that is utterly irrelevant (unless it points to a capitalization error on a system (*n*x for example) which is case sensitive (unlike 'doze). But I have failed to imagine any other reasonable interpretation.

        "...the form on the new site the browser says the link appears to be broken, I get no server error messages." also boggles my mind. I'm guessing that the first part, re the browser, means you're getting a 404 error. If so, you should also find that in Apache's error log, the place to which I would expect "no server error messages" to refer. So explain that too, please.

        And if you're merely trolling, my congratulations (or something) on taking me for a ride... but even a slow-Monk can learn (or run out of patience)... and I won't be responding further to this unless the quality the information in your postings improves.

        Update: Duh. So carried away I forgot to write the footnote...

        1: Subordinate to a directory with user-accessible html, as opposed to the site's root dir, one level above the user-accessible html, or -- as some providers organize it -- as a single cgi-bin above any site's user-space directories.

        Update 2: Fixed (I hope) ASCII art of hypothetical dir structure.