Forum Moderators: coopster & phranque

Message Too Old, No Replies

using form-mail.pl with UK2.net

         

pendle

12:05 pm on Jan 7, 2007 (gmt 0)



Hello, I've recently moved a domain from Demon to UK2.net as the customer wanted a cheaper provider, and previously I've had no issues with UK2.net. However this is the first time I've had to use a perl script.

I'd like to know if anyone else uses them, because I cannot get my form-mail.pl to work and their support seems to be rather slow over a weekend (ie non-existent).

Their support pages say that the start of a script should say:
#!/usr/bin/perl and the mailprog line says $mailprog = '/usr/bin/sendmail';

which they do. I have uploaded the script to the cgi-bin. The folder attributes are 755 and the form itself is 755.

On the web page the <form> tag reads thus:

<form action="/home/n/o/example_co_uk/cgi-bin/form-mail.pl" method="POST">

which is what their support pages imply it should be. This does not work. I have tried various combinations without success, including emulating their own script which says: <form action="http://cgi.uk2.net/cgi-bin/uk2-formmail.pl" method="POST">

Using their formmail.pl does work, however I do have several scripts and need to know where their server stores the files.

If anyone can tell me the correct way the <form> tag should read, I would be most grateful.

regards

Pendle

[edited by: encyclo at 2:27 am (utc) on Jan. 8, 2007]
[edit reason] examplified [/edit]

rocknbil

1:45 am on Jan 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome aboard pendle, review the TOS, your URL's will soon be rendered anonymous. :-)

/home/n/o/example_uk/cgi-bin/form-mail.pl

This can't be correct. That is a full path or virtual path, and the nature of POST is by http. So it has to be an http request.

You say you uploaded it to cgi-bin, which leads me to believe it is the domain cgi-bin you need to point your form to. I imagine you've tried [yoursite.com...]

Another thing you can try, poke around by entering a direct request to even see if you can get to this script, that is, enter the URL to it directly in the address bar. You will get "not found" or "permission denied" if the URL is wrong (but you will also get permission denied if you DO hit the script and it doesn't have permissions to execute in spite of your CHMOD.)

Last thing (or should be FIRST thing) to check, does the script run offline on your local computer? Install perl locally, navigate in DOS to the script directory, type perl [scriptname] [press enter].

dolbz

10:23 pm on Jan 9, 2007 (gmt 0)

10+ Year Member



I have to agree with the above poster this is a problem with the form action path. Once this is sorted it should kick into life.