Monks

I have had a shopping cart and formmail on my website for many years and it has worked flawlessly. I have to admit that I did not write the perl code its TKI cart that used to be free on the web.

The problem I have encountered is that I am trying to use the same TKI on a new site that is a sub domain on my server. And I am wondering if because it is a sub domain do I need the path directing the form to be different. I do have the CGI-Bin and all of its contents on the new site.

I have been testing the new site by just using the formmail part with a form that I put on one of the pages, this same form page is on my main site and again it works flawlessly. The problem I am encountering is when the form is submitted it cannot seem to find the path cgi-bin/formmail. I have been playing with the code for quite some time and continue to get the message that this link cannot be found.

The path it is trying to find is www.mywebsite/cgi-bin/formmail.

I have tried all of the following

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

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

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

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

Nothing I try to do seems to work

Also when trying to use the shopping cart again it cannot find the CGI-bin, it is being directed to the http://www.mywebsite.com/cgi-bin/cart/tki_cart.pl but for whatever reason again no luck on the link being found by the cart.

I thank you in advance for anything you might recommend that I try out as I am at my wits end.


In reply to TKI cart by lopacki

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.