Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 09-21-2001, 06:13 PM   #1
SNOW
Confirmed User
 
SNOW's Avatar
 
Industry Role:
Join Date: Feb 2001
Posts: 3,963
I NEED HELP WITH A EMAIL BOX

I would like to have a email box on the bottom of my paysites.. How do i go about geting the script or can anyone make me one..

Appreciate it tanks SNOW
SNOW is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2001, 06:28 PM   #2
aleck
Confirmed User
 
Join Date: Jan 2001
Posts: 940
hmm, write a form, target it to perl or php script and u r done

form example {=< and }=>
{form action="/cgi-bin/email/email.cgi" method="post"}
{input type="text" name="email" size="30" maxlength="50"}
{input type="submit" value="subscribe"}
{/form}

perl script example (only active part):

#!/usr/local/bin/perl -w

my $temp=$ENV{'QUERY_STRING'};
my @pairs=split(/&/,$temp);
foreach $item(@pairs) {
my ($name,$value)=split (/=/,$item,2);
$value=~tr/+/ /;
$value=~ s/%(..)/pack("c",hex($1))/ge;
my $request{$name}=$value;
}

my $storagefile="/usr/home/domain.com/cgi-bin/email/emails.txt";
# path to the file to store emails

print "Content-type: text/html\n\n";

if (open(DB,">>$storagefile"))
{
flock DB, 2;
print DB $request{"email"}."\n";
close(DB);
# here all {} r equal to <>
print "{html}{body}{h1}thank you{/h1}{/body}{/html}";
} else {
# here all {} r equal to <>
print "{html}{body}{h1}error writing to the file{/h1}{/body}{/html}";
}


hope that helps

p.s. don't forget to set permissions of folders and files
folders: 777, cgi script: 755, output file 666

[This message has been edited by aleck (edited 09-21-2001).]
aleck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2001, 06:55 PM   #3
SNOW
Confirmed User
 
SNOW's Avatar
 
Industry Role:
Join Date: Feb 2001
Posts: 3,963
thanks bro get a hold of me please ICQ 54866383
SNOW is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-21-2001, 07:07 PM   #4
SNOW
Confirmed User
 
SNOW's Avatar
 
Industry Role:
Join Date: Feb 2001
Posts: 3,963
I'm not good with scripts is there something i can buy...
SNOW is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-22-2001, 12:15 AM   #5
aleck
Confirmed User
 
Join Date: Jan 2001
Posts: 940
oh i wasn't checking the board, opening icq
btw mine is 17081394
aleck is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.