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


Help needed about this contact CGI file





siruhan
I made my website using a flash template http://www.siruhan.frih.net

It has a contact form and a contact.cgi file..I have no idea how to set this code..

Please help me! I dont have any experience in cgi, but it appears quiet simple..


----------------------------------------------------------------------------

#!/usr/bin/perl

print "content-type :text/html \n\n";
$req=$ENV{'REQUEST_METHOD'};
read(STDIN,$buff,$ENV{'CONTENT_LENGTH'});
@pair=split(/&/,$buff);
@pair1=split(/=/,$pair[0]);
$pair1[1] =~ s/%(..)/pack("c",hex($1))/ge;
$pair1[1]=~ tr/"+"/" "/;
@pair2=split(/=/,$pair[1]);
$pair2[1] =~ s/%(..)/pack("c",hex($1))/ge;
$pair2[1]=~ tr/"+"/" "/;
@pair3=split(/=/,$pair[2]);
$pair3[1] =~ s/%(..)/pack("c",hex($1))/ge;
$pair3[1]=~ tr/"+"/" "/;
@pair4=split(/=/,$pair[3]);
$pair4[1] =~ s/%(..)/pack("c",hex($1))/ge;
$pair4[1]=~ tr/"+"/" "/;
@pair5=split(/=/,$pair[4]);
$pair5[1] =~ s/%(..)/pack("c",hex($1))/ge;
$pair5[1]=~ tr/"+"/" "/;
@pair6=split(/=/,$pair[5]);
$pair6[1] =~ s/%(..)/pack("c",hex($1))/ge;
$pair6[1]=~ tr/"+"/" "/;
$MailProgram="/usr/lib/sendmail";


$YourEmail="contactus@growww.com";
$Subject="Growww: Online inquiry";
open (MAIL,"|$MailProgram -t");
print MAIL "To: $YourEmail\n";
print MAIL "From: $pair2[1]\n";
print MAIL "Subject: $Subject\n";
print MAIL "$pair5[1] has submitted the following information:\n\n";
print MAIL "Title: $pair6[1]\n";
print MAIL "Name: $pair5[1]\n";
print MAIL "Company: $pair4[1]\n";
print MAIL "Phone: $pair3[1]\n";
print MAIL "Email: $pair2[1]\n";
print MAIL "Comments: $pair1[1]\n";
close (MAIL);

print "&send=y";

-------------------------------------------------------------------------------
jipmerite
I am also planning to set up my frihost site with a FLASH Template. It has a guestbook but in the template there is no CGI file or any other file. There is just a HTML Index file and about 5 Fla files that I can edit and the FLASH Movies to upload....I got it from www.templatemonstor.com...

So any idea how the site will work? I mean the guestbook....

Both of us waiting for instructions from the experts here... Smile
Related topics
Help Needed Regarding CGI And Php
how to run the cgi at frihost???
Perl Script - Internal Error 404 File not found
cgi-bin help
how to slice images? help needed
Is there a tutorial for CGI-scripts?
FLASH HELP NEEDED BADLY!!!
SMF help needed!
ARG, need help getting web site up.
Form Mail Help Needed
*URGENT* Help me Fill This .cgi i dont know what to place.
PHP Read File Help needed.
Big Help needed .
Help Needed with phpBB overall_header.tpl
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.