FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Please Help? CGI form mail on my site... only 2 questions!





watersoul
Hi everyone.
I'm trying to put a cgi form-emailer on my site (which is all under construction really) http://watersoul.frih.net/lepetitloron/contact.html and it's the first time I've tried but am getting stuck on a couple of things...

Does anyone know what I ammend this script to:

# Location of mail program - check your doc or ask admin
$MailProgram = '/usr/lib/sendmail';

plus...

#!/usr/bin/perl
# location of Perl (above) - check your doc or ask admin

I think, but I'm not sure that these are the only things I need to know to make the form work.
I'm a bit excited thinking that, yes, I can get a cgi form done hopefully, but I need the help of anyone who knows about these things, and I am very grateful for any advice anyone can offer.

Thanks 2 all Smile
brevity
Okay, the first part of the script you mentioned is where the location of the actual script to run is. Let's say the script that sends the mail is send.php ...what that's asking is "where did you put send.php?"

Direct it to the location of send.php by putting in the path to it. Example: http://watersoul.frih.net/lepetitloron/contact/send.php

You see?


The second part is asking you "how do I get to perl on the server?" This is usr/bin/perl by default, so chances are you won't need to do anything here. If you do, it should say in the Cpanel where perl is located.


Hope this helps!
watersoul
Aw, Thank You Very Happy

...gonna have a go now and see if I can actually get my first form up & running, yay, it's quite exciting for me
Bondings
Quote:
# Location of mail program - check your doc or ask admin
$MailProgram = '/usr/lib/sendmail';

plus...

#!/usr/bin/perl
# location of Perl (above) - check your doc or ask admin

Both those default values seem to be ok.
zjosie729
Quote:
# Location of mail program - check your doc or ask admin
$MailProgram = '/usr/lib/sendmail';


Shouldn't this part be /usr/sbin/sendmail ?
jayandsilo
yes because that's what I used for the same form he has
siruhan
I am a complete newbie. I am using downloaded flash template to make my site http://www.siruhan.frih.net/

I am trying to make the contact form work. I have a CGI file in the template, so what do I have to do with it?

Right now the response I get is" timed out" when I try to submit the contact information in the form.

Hope for a major help Smile
watersoul
Hi, i couldnt quite get the hang of the CGI process and I'm still reading and learning and trying to set one up eventually, but in the meantime i used a great free PHP script at http://www.thesitewizard.com/wizards/feedbackform.shtml
... it really is easy to use, simply customise the html form that will go on the webpage, then edit the PHP file in wordpad or something like that, and upload it to your site and its done!
OK, its a quick way for a result and doesnt give you any CGI skills, but they also offer a CGI based one and by fiddling with that, I'm sure we'll master that strange new language/process eventually!
Good luck with it though, hope this helps a little.
brevity
hey watersoul, glad to hear you got it up and running.

For any script you might need, Hot Scripts is always a good place to start. They're not all free, but most are.
jayandsilo
yeah well you would only really need the perl related one for html in this situation.
Related topics
Reply to topic    Frihost Forum Index -> Support and Web Hosting -> Web Hosting Support

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.