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 | |
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). | [reply] [d/l] |
by lopacki (Initiate) on Jun 11, 2010 at 20:49 UTC | |
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 | [reply] |
by lopacki (Initiate) on Jun 11, 2010 at 22:24 UTC | |
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.
| [reply] [d/l] [select] |
by ww (Archbishop) on Jun 12, 2010 at 01:56 UTC | |
Your lack of precision and failure to provide comprehensive answers to very basic questions from those trying to help you is 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. | [reply] [d/l] [select] |