View Full Version : Help with link, anybody?
mdaiah
09-24-2003, 06:01 PM
At http://www.humanecology.com.au/contactus.htm is a form.
I can't work out why the form isn't working. It ought to send visitor to thankyou.htm and send the enquiry to us. Would you be kind enough to take a look and tell us how to remedy.It works ok in Front Page (yes I know but we're stuck with what we have)but not when uploaded.
with thanks,
Michael (mdaiah)www.humanecology.com.au
Sualdam
09-24-2003, 06:07 PM
In the line:
<FORM MEHTHOD="POST' ACTION = "HTTP://www.webquarry.com/cgi-bin/chiemail/~humanecology.com.au/template.txt">
there is a typo ('mehthod') and the url gives a 404 (file not found) error.
Just two quick observations.
I can't see how this is supposed to work using a text file, though...
mdaiah
09-24-2003, 07:15 PM
Thank you Sualdam,
any further thoughts on your second comment- not sure how this is supposed to work?
Regards,
Michael
Sualdam
09-24-2003, 07:22 PM
Well, the only ways I know of sending form details in a formatted manner uses server side scripts.
Basically, you send the form information to this script, which removes the encoding, formats it the way you want it, then sends it using a specified mail server to the designated addressee(s).
Your code is tryng to send the information to a text file.
Can you paste the contents of the text file here?
The server side scripts are really just text files, but with a specific filename extension (and your server has to be able to intepret the code inside).
Without knowing the full story, I'm guessing this text file (which isn't on the server) is a misnamed script file.
paulhiles
09-24-2003, 08:11 PM
Hi Michael
I notice that you have a registration form on your site that uses a Perl script to process your visitor's information. This script appears to reside in your 'cgi-local' directory, and is fully functioning.
Does your host (is it quarry.com?) allow for a selection of generic scripts to run on their server? The majority of budget-priced hosts give their users such facilities as value added services.
My guess is that this is the case, and all you really need to do is locate the appropriate script on your site. Hopefully your host provides some form of support or an FAQ section? best bet would be to speak to them directly.
Feel free to put me straight, if I'm barking up the wrong tree!! :)
Take care
Paul
mdaiah
09-25-2003, 02:19 AM
hi Paul,
thank you for taking the time. I am following up on your comments and those of Sualdam and checking with Web Quarry.
Regards,
Michael
williamjay
09-25-2003, 12:15 PM
In the line beginning <FORM METHOD="POST' ACTION = "HTTP://www.webq . . ., there are two things a bit out of line. One is obvious, the quotation mark after POST is a single. The other is not so obvious, there is a space after ACTION and another after the equal sign. . .
William
mdaiah
09-25-2003, 04:42 PM
Thanks William,
These little details that hide away. Once you'd pointed it out it was as we say here 'sticking out like dogsballs'. You are in a beautiful place - I have a friend who lives there somewhere, runs a little cafe perhaps called 'little bites or tastes',do you know it? Say hello if you do.
Warm regards,
Michael
williamjay
09-25-2003, 05:45 PM
Howdy mdaiah,
Well, I've just recently moved here, so haven't gotten around much, but will look for it and let you know. Another small detail about the page, METHOD="POST"ACTION="HT... , better but missing a space after "POST". We'll get it working yet.
William
williamjay
09-25-2003, 06:12 PM
Howdy again Michael,
The thing is that when a form uses the method post, it's usually posted to a script for processing, and a page is returned to the browser, dependent on the results of the processing, (missing info, success, failure, etc). Normally the cgi script will have the file extension .cgi or .pl rather than .txt as it is specified in your page. I think what you want is for the submitter to be sent to the 'thank you' page and the form entries sent to the cgi script. It will require more details about the Web Quarry site and software to fix this.
William
MartinHa
09-26-2003, 03:35 PM
<FORM METHOD="POST" ACTION="HTTP://www.webquarry.com/cgi-bin/chiemail/~humanecology.com.au/thank_you_for_enquiry.txt">
<font color="#008080"><input TYPE="hidden" NAME="user" VALUE="humane0">
<input TYPE="hidden" NAME="templtfile" VALUE="template/template.txt">
<input TYPE="hidden" NAME="responseURL" VALUE="http://www.humanecology.com.au/thankyou.htm">
templtfile is that correct? and why a different action and responseURL?
Only you need is this part <form action="thankyou.htm" method="post">
Mart
williamjay
09-30-2003, 07:50 AM
Howdy Michael,
I see this morning that there is an extra less than sign in the page, FORM METHOD="POST" ACTION=<A href="http://www.webquarry, after ACTION= . . .
Have you made contact with the webmasters there at webquarry to ascertain the proper code to call the cgi script? I've checked their help pages to see not much help. I understand what the tilde, (~), character is usually for, but scripts normally expect a question mark or ampersand in that place, (? &), so it may be as simple as changing that . . .
William
williamjay
10-29-2003, 10:11 AM
Hi There,
It looks like you got it straightened out Michael, that line <form ACTION="cgi-local/registration.pl" METHOD="POST"> was what I was attempting to describe.
Is it possible that the cafe is called "Right Bite Cafe", if so, it's a bit far at the moment, but I'll definitely check it out when I'm out that way . . .
regards,
William