PDA

View Full Version : subscribe me


g00fy
01-30-2003, 12:00 AM
hello all,

i am a total newbie to cgi, but i would like to know how to add a subscribe me form to my page. all i want to collect is an email address that is sent to me somehow(dont know how this happens - by email, i assume, or appended to a text file in my cgi-bin)

i would like however, the ability to have a 'subscribe' & 'unsubscribe' radio button on my form.

is there a tutorial or something somewhere, i am willing to learn this and not just copy code :)


TIA

g00fy

Calilo
01-31-2003, 04:02 AM
well you can check on pages such as hotscripts.com for this kind of scripts there must be hundreads, and also check there for tutorials, i dont know about any tutorial, we can sure helo you here once yo uget started.

Calilo

g00fy
01-31-2003, 04:15 AM
thanx,

i went there this morn, and grabbed hold of a few but i am having trouble getting my head around it.

i think i need a cgi-bin that is URL accessable atthe moment my structure is

domain
........ html (this is the root of my 'browseable' directories)
........ cgi-bin
........ logs


and my pages are obviously in html so i cant read cgi-bin from browser to configure the form, i figured i need a script alias in apache but my 'hoster' has no idea about that :(

i tried creating a cgi-bin below my html and chmod the cgi file to be executable, but that didnt work either :(

also if i have a cgi-bin below my html i have security probs cause the script has u/n ad pwd details in it.

please help


TIA

g00fy

Calilo
01-31-2003, 04:29 AM
All servers have that same folder structure, you can acces the cgi bin by www.yourdomain.com/cgi-bin/ else your host has trobule and they should know how to fix it, the apache confing is supposed to have the alisas already made for this. so just upload your scripts in ascii mode and chmod them 755

try with a simple scripts as


#!/usr/bin/perl

print ("Content-type: text/html\n\n");
print "<html><head><title>TRY</title></head>";
print "<p>Try try try a little nice script";
print "<p>Bye bye";
print "</html>";



that should work fine
Calilo

g00fy
01-31-2003, 05:12 AM
ok thanx Calilo,

your test script works fine, i'll try setting up my mail script now,

wish me luck :)


thanx again

g00fy

g00fy
01-31-2003, 11:59 AM
ok so i can be taught :)

now i'm going for an email form and some cookies

thanx heaps


kind regards

g00fy