/    Sign up×
Community /Pin to ProfileBookmark

I would like to make a form that has only two areas of information for the user to fill out. one would be name, the other would be registration ticket number. it sonds simple enough for me until this point too but i would like the form to send me the information to my mail and post only the name of that particular person on the webpage. so when the user comes back in he sees that his name is “on the list” so to speak.

any help with this would be much appreciated thank you in advance.

Regards,
THURO.
[url]www.urvak.com[/url]

to post a comment
JavaScript

30 Comments(s)

Copy linkTweet thisAlerts:
@PalrosMay 18.2005 — This part has nothing to do with javascript, as everything needs to be done on the server side. I have written a perl program to do a similar thing, but I have no clue how to program it so it works on whatever host you use. So until I know how it handles email, I cannot do the email part. The page with their name would also have to be generated by a serverside script. Of course, your host needs to support some serverside scripting, such as perl used for CGI. If it has something else, you are going to have to look in another form. I won't be able to help you.
Copy linkTweet thisAlerts:
@ThuroauthorMay 18.2005 — My server does have cgi enabled features so i guess i would run it through there just wanted to see if a javascript code would do the same.
Copy linkTweet thisAlerts:
@PalrosMay 18.2005 — nope. javascript has no way to send emails or update server side data.

if your host supports perl (a form of CGI) I might still be able to help.
Copy linkTweet thisAlerts:
@ThuroauthorMay 18.2005 — yes it does support perl
Copy linkTweet thisAlerts:
@PalrosMay 18.2005 — okay...

so name the name input "name" and regristration number "number". set the form's action to "cgi-bin/mailscript.pl", or whatever the position of the cgi-bin is from that page. set the form's method attribute to "post".

mailscript.pl:
[CODE]
#!/usr/local/bin/perl

require TripodCGI;
my $CGI = new TripodCGI;

my $number = $CGI->param('number');
my $name = $CGI->param('name');

open(LIST, ">>namelist.txt");

print LIST <<END;
$namer
END

close(LIST);

print <<END;
Content-Type: text/htmlnn

require Mail;
$mail = new Mail;

$mail_template = "mail.txt";
%templateVar = ('webmaster' => '//your email',
'name' => "$name",
'number' => "$number");

$mail->sendMail($mail_template, %templateVar);

print <<END;
Content-Type: text/htmlnn

//here you add an html page for them to be shown after submitting

END

[/CODE]


You need to replace my coments, which start with // with your email and the html output shown after submitting, respectfully. You may need to change the 1st line so it goes to your servers perl source. The list of names is stored in namelist.txt, which will automatically be created.

and then you need several more files, including mail.txt (the mail template) TripodCGI.pm and Mail.pm (perl modules) in your cgi-bin.

TripodCGI.pm
[CODE]

package TripodCGI;

################
# TripodCGI.pm #
#############################################################################
# TripodCGI is a module to help you deal with CGI input, which is the kind #
# of input your script can get from forms (as well as from specially-coded #
# links). When you have a form submit its information to your script, #
# you can use TripodCGI to grab some or all of the inputs that the form #
# provided, so that you can use them for your own nefarious ends ;) #
# #
# Of the functions below, the only two that you are likely to need to pay #
# attention to are param() and redirect(). param() is the function which #
# lets you grab CGI input. If you specify the name of a particular input #
# that you want to grab, param() will grab the value associated with the #
# input of that name. So if I have a form with a text input box named #
# 'address', and somebody types in '160 Water St.' and hits the submit #
# button, I can assign '160 Water St.' to the variable $form_address within #
# my form with this statement: #
# #
# $form_address = $CGI->param('address'); #
# #
# If you just want to know all of the names of the inputs returned by #
# the form, don't specify an input, and the names of all the inputs will be #
# returned as an array - like this: #
# #
# @all_inputs = $CGI->param(); #
# #
# The other function you might want to use is redirect(). redirect() lets #
# you specify the URL of a page or script that you want to move your #
# visitor to. You could use it like this: #
# #
# $CGI->redirect('http://www.tripod.com'); <- redirects to the Tripod #
# front page #
#############################################################################

sub new {
my $class = shift;
my $self = {};
bless $self, $class;
%data = ();
$self->_initialize();
return $self;
}


sub param {
my($self,$key) = @_;
return keys %data unless $key;

return undef unless defined($data{$key});

my @values = split("", $data{$key});
return wantarray ? @values : $values[0];
}


sub redirect {
my($self,$url) = @_;
return "Status: 302 FoundnLocation: $urln" .
"URI: $urlnContent-type: text/htmlnn";
}


sub _initialize {
my $query_string = '';

if ($ENV{REQUEST_METHOD} eq 'POST') {
read(STDIN, $query_string, $ENV{CONTENT_LENGTH});
} else {
$query_string = $ENV{QUERY_STRING};
}

my($key,$val);

for (split(/&/, $query_string)) {
s/+/ /g;
($key,$val) = split(/=/, $_, 2);

$key =~ s/%(..)/pack("c",hex($1))/ge;
$val =~ s/%(..)/pack("c",hex($1))/ge;

$val =~ s/rn/n/g;
$val =~ s/r/n/g;

if (defined($data{$key})) {
$data{$key} .= "";
$data{$key} .= $val;
} else {
$data{$key} = $val;
}
}
}


1;
[/CODE]


and mail.txt

[CODE]
To: $webmaster
From: YourWebsite
Subject: New member on list

$name
$number
[/CODE]


you can modify the template to show whatever you want. I suggest you change the from and subject, and maybe add a little more text to the message other than the person's name and registration number.

and Mail.pm... I know my module is specifically designed for the server. So: does your server come with a mailling module? if so, please post it. Otherwise: I need you to find out how to send a mail file from your server. Such as: what do you name the mail file when saving it to the server so it will be sent? Or is there a different way for the server to send mail?

I think I gave you enough for now. Next time I'll pull up some code to display the list of names. That will be about ten times simpler: just open the namelist.txt, read the data, close it, and output the page.
Copy linkTweet thisAlerts:
@ThuroauthorMay 18.2005 — thanks i'll try all this out right now.
Copy linkTweet thisAlerts:
@ThuroauthorMay 19.2005 — ok i uploaded those three files to my cgi folder made a page to have the forms in it uploaded it to my server and tried to test. no luck.
Copy linkTweet thisAlerts:
@ThuroauthorMay 19.2005 — i didnt upload the mail.pm so i'll do that right now
Copy linkTweet thisAlerts:
@PalrosMay 19.2005 — You might want to read my post again. I believe I asked for some info so I could fix up a mail.pm file for you. I know it doesn't work without it.

and Mail.pm... I know my module is specifically designed for the server. So: does your server come with a mailling module? if so, please post it. Otherwise: I need you to find out how to send a mail file from your server. Such as: what do you name the mail file when saving it to the server so it will be sent? Or is there a different way for the server to send mail?
[/QUOTE]


I got my modules from Tripod, which I use to host my website. I highly doubt that the module I have will work on your server, but I can modify it if you tell me those things. Here is what I have from tripod:

Mail.pm:
[CODE]
package Mail;

################
# TripodMail.pm #
#############################################################################
# TripodMail is a module that allows you to send out email messages with
# your scripts. In order to use it you'll have to have a mail template in
# your cgi-bin directory. The mail template will need to look something
# like this:

# To: $email
# From: [email protected]
# Subject: YabbaDabbaDoo!
#
# Hello $name,
# Congratulations! You're user number $number of this mail script!

# You can add other email headers (Reply-To:, Errors-To:, etc), but To:
# and From: are manditory. You can customize your email by adding variables
# wherever you would like to fill something in on the fly.
# The sendMail method requires 2 parameters- the location of the mail
# template file, and a reference to a hash of variables.
# The keys of the varaible hash should correlate with the variables in the
# mail template.

# Example of use:
# require TripodMail;
# $MAIL = new TripodMail;
# $mail_template = "./flintstones_mail.txt";
# %variables = ('email' => '[email protected]',
# 'name' => 'Wilma',
# 'number' => '2');
# $MAIL->sendMail($mail_template, %variables);

# Note: In order to prevent spamming, you will be limited to sending out 240
# mails per day.
###########################################################################

sub new {
my $class = shift;
my $self = {};
bless $self, $class;
return $self;
}

sub sendMail {
# example: $MAIL->sendMail($template_file, %hash_o_variables)
# requires: 1) name of a file that is a template for the mail
# 2) a reference to hash of variables to fill out the template
# does: writes a mail file to member's directory to be mailed later
# by sendmail
# returns: 1 on success, 0 on failure

my ($self, $template_file, $hash_ref) = @_;
my ($message, $key, $time, $file);

# error checking
if ((! $template_file)||(! $hash_ref)){
print STDERR "usage: sendMail(template_file, hash_reference)n";
return 0;
}
if (! -s $template_file){
print STDERR "file does not exist or has a 0 size!n";
return 0;
}

# read in template
open (MESSAGE, "<$template_file") or
die "can't open template file $template for readingn";

undef $/;
$message = <MESSAGE>;
close (MESSAGE);
$/ = "n";

# variable substitution
foreach $key (keys (%{$hash_ref})){
$message =~ s/$$key/$hash_ref->{$key}/eg;
}

# check final template format
if ($message !~ /to:.*w+@w+.w+/i){
print STDERR "To: field missing or invalid recipientn";
return 0;
}
if ($message !~ /from:.*w+@w+.w+/i){
print STDERR "From: field missing or invalid sendern";
return 0;
}

# write template to file
$time = time();
$file = 'mail.'.$time;

open (FILE, ">$file") or
die "can't open file: $file for writingn";
print FILE $message;
close (FILE);

return 1;
}

1;
[/CODE]
Copy linkTweet thisAlerts:
@ThuroauthorMay 19.2005 — this is what i got back from my server

/home/USERNAME/public_html/cgi-bin/

(replace USERNAME with your username, in lowercase letters)

The path to sendmail on the servers is:

/usr/sbin/sendmail
Copy linkTweet thisAlerts:
@PalrosMay 19.2005 — and what does sendmail do? How am I supposed to know what username is? (do I even need to know?) I'm not quite sure what you are telling me.
Copy linkTweet thisAlerts:
@ThuroauthorMay 19.2005 — user name is gtfacto i went in to the support because the didnt have anything on their intalled modules and that is what i got back

let me check if there is more i can look up.
Copy linkTweet thisAlerts:
@ThuroauthorMay 19.2005 — that is all that is on the faq page on sending mail with perl

Frequently Asked Questions: Home :: CGI and Perl Questions :: Perl Sendmail and CGI-Bin Paths


--------------------------------------------------------------------------------
What are the paths to sendmail and your cgi-bin?

The path to your cgi-bin is:

/home/USERNAME/public_html/cgi-bin/

(replace USERNAME with your username, in lowercase letters)

The path to sendmail on the servers is:

/usr/sbin/sendmail
Copy linkTweet thisAlerts:
@PalrosMay 19.2005 — You probably have to tell them to add the modules. Shouldn't be too hard. one (hopefully) will do something with the mail.
Copy linkTweet thisAlerts:
@PalrosMay 19.2005 — can you give me the address of that page, or do you need a username and pw to get to it?
Copy linkTweet thisAlerts:
@ThuroauthorMay 19.2005 — ok let me see what is up with the modules
Copy linkTweet thisAlerts:
@ThuroauthorMay 19.2005 — found this too

FormMail

For the convenience of our customers all servers have a copy of the popular FormMail script preinstalled in the cgi-sys directory. This script is available for use on all accounts for the easy creation of web-based email forms.

To use this copy of FormMail.pl you need to use either of the following as the "action" in your form code:

/cgi-sys/FormMail.pl

/cgi-sys/FormMail.cgi

Example:

FORM ACTION="/cgi-sys/FormMail.pl" METHOD="POST"

Things to Note

  • - Unix is cAsE sEnSiTiVe, when using the above actions one must spell "FormMail" exactly as posted above, capitalizing the F and M.


  • - When using the FormMail script available globally in the cgi-sys directory one must use an @domain email address on their account hosted on that server in order for the script to function.


  • - Be aware that you will not find this particular script located in your account, nor will you see a "cgi-sys" folder. This is a server wide alias to a single script which is available globally on all accounts.


  • - In most cases the form action will work either with or without the initial slash (ex: /cgi-sys/FormMail.pl or cgi-sys/FormMail.pl) however if one should encounter problems with one path they should try the other.
  • Copy linkTweet thisAlerts:
    @PalrosMay 19.2005 — great...

    Any chance you can find out how to name the inpouts for formmail to work? does it have to use post?
    Copy linkTweet thisAlerts:
    @ThuroauthorMay 20.2005 — after searching and searching i cant find any refrence to a name that has to be used i'll send in a trouble ticket to see what they say

    thanks for all the help palros
    Copy linkTweet thisAlerts:
    @PalrosMay 20.2005 — you're welcome, but I'm not done yet. just need to know how I can use formmail to make this work.
    Copy linkTweet thisAlerts:
    @ThuroauthorMay 24.2005 — alright I figuredd out how to send the mails with the formmail cgi now its time for the second part of the script here is an example script.

    [CODE]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <!-- saved from url=(0056)http://modamono.com/cp/scripts/formmail-doc/example.html -->
    <HTML><HEAD><TITLE>Mailform example</TITLE>
    <META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
    <META content="MSHTML 6.00.2900.2627" name=GENERATOR></HEAD>
    <BODY>
    <FORM name=formmail action=/cgi-bin/formmail/formmail.cgi method=post><INPUT
    type=hidden [email protected] name=recipient>
    <P><B>Name of Registrant:</B><BR>
    <INPUT size=45 name=subject></P><BR>
    <P><B>Billing Address:</B><BR>
    <INPUT size=45 name=realname>
    </P>
    <P>&nbsp;</P>
    <P><b>City:</b><BR>
    <INPUT size=45 name=realname2>
    </P>
    <P>&nbsp;</P>
    <P><b>State:</b><BR>
    <select name="select">
    <option value="Alabama">Alabama</option>
    <option value="Alaska">Alaska</option>
    <option value="Arizona">Arizona</option>
    <option value="Arkansas">Arkansas</option>
    <option value="California">California</option>
    <option value="Colorado">Colorado</option>
    <option value="Connecticut">Connecticut</option>
    <option value="Delaware">Delaware</option>
    <option value="Florida">Florida</option>
    <option value="Georgia">Georgia</option>
    <option value="Hawaii">Hawaii</option>
    <option value="Idaho">Idaho</option>
    <option value="Illinois">Illinois</option>
    <option value="Indiana">Indiana</option>
    <option value="Iowa">Iowa</option>
    <option value="Kansas">Kansas</option>
    <option value="Kentucky">Kentucky</option>
    <option value="Louisiana">Louisiana</option>
    <option value="Maine">Maine</option>
    <option value="Maryland">Maryland</option>
    <option value="Massachisetts">Massachisetts</option>
    <option value="Michigan">Michigan</option>
    <option>Minnesota</option>
    </select>
    </P>
    <BR>
    <P><B>Telephone:</B><BR>
    <INPUT size=45 name=email></P>
    <BR>
    <P><B>Comments:</B><BR><TEXTAREA name=body rows=10 wrap=virtual cols=60></TEXTAREA></P><BR>
    <P><INPUT type=submit value="Send Email">
    <INPUT type=reset value="Reset Form"></P></FORM></BODY></HTML>[/CODE]



    Now the second part of what i was asking was to have a registrants name post on the web page that part i have absolutely no clue how to go about.
    Copy linkTweet thisAlerts:
    @PalrosMay 25.2005 — posting the names on the page is pretty easy. The "page" with the list of names will actually be a cgi script which outputs the page using data from a txt file added when the form is submitted.

    [CODE]
    #!/usr/local/bin/perl

    open(LIST, "<namelist.txt");
    my @names = <LIST>;
    close(LIST);

    my $list="";
    for (my $i=0; $i < $names.length; $i++)
    {
    $list += "<li>"+$names[i]+"</li>";
    }

    print <<END;
    Content-Type: text/htmlnn

    //here you add an html page for them to be shown after submitting
    //and somewhere in the html page you have...
    <ul>
    $list
    </ul>
    //you can use an ordered list if you'd like. then just change the ul tags to ol tags

    END
    [/CODE]

    save that page as a .pl file. the name doesn't matter. then, to access the data, you can just put a link to the file like it is an html page. again, the 1st line might need to be changed if that isn't the source to perl on yur server. and you need to write the html output. delete the comments I have there.

    I think I forgot to mention this before... on most servers you have to set permissions for a script for it to be aloud to run. I don't know exactly how to set these, or if you need to. Tripod automatically assumes that all scripts are aloud to run, but they are not aloud to execute certain commands.

    and the formmail... does that page you posted work? also, do you have to use the post method? (as opposed to get). If I can use get, I could figure out a workaround, like running the first script I sent you, and redirecting to the formmail script.

    also, I don't think we will need mail.txt. go ahead and delete it.
    Copy linkTweet thisAlerts:
    @ThuroauthorMay 30.2005 — Thanks a lot parlos, to ansewer your questions yeah that page works, i am not sure if "get" will work however we could try it and as for the file with the names how would it be written ? do i need to add code? and if so where? also the last code you wrote in the last post, I can put that into dreamweaver and make it look like the rest of the site right? alright thanks for all the help.
    Copy linkTweet thisAlerts:
    @PalrosMay 30.2005 — you can use whatever you want to create the page. the names are all enclosed within <li> tags, so somewhere in the html you need either

    [CODE]
    <ul>
    $list
    </ul>
    [/CODE]


    or

    [CODE]
    <ol>
    $list
    </ol>
    [/CODE]


    which would print either an unordered list of the names (bulleted) or an ordered list (numbered), respectively. The code all has to go between
    [CODE]
    Content-Type: text/htmlnn
    [/CODE]

    and
    [CODE]
    END
    [/CODE]


    you need to be careful about using the $ sign, @ sign and % sign anywhere in the page, because perl might think the word is a variable, and might replace it with "undefined". Also avoid having "END" appear anywhere in the page.

    you can add any attributes you want to the <ul> or <ol> tag.
    Copy linkTweet thisAlerts:
    @ThuroauthorJun 01.2005 — ok i put in all the code, uploaded the files set the file to be able to execute on my server and its all good but i get an internal server error on lines 4 and 13. so here is both the register page (page where the form is located), and the register.pl (page where the list should appear) code.

    Register Code

    [code=html]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Drift Circuit</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body background="dcbg.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table width="778" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td height="396" colspan="7" valign="top"><img src="dcnews.jpg" width="779" height="397" border="0" align="top" usemap="#Map"></td>
    </tr>
    <tr>
    <td width="28" rowspan="4" valign="top">&nbsp;</td>
    <td width="120" height="454" rowspan="3" valign="top" bgcolor="#CCCCCC">&nbsp;</td>
    <td width="5" rowspan="3" valign="top" bgcolor="#FFFFFF"> <p>&nbsp;</p></td>
    <td width="472" height="1" valign="top" bgcolor="#FFFFFF">
    <p>&nbsp;</p>
    </td>
    <td width="1" rowspan="3" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
    <td width="120" rowspan="3" valign="top" bgcolor="#CCCCCC">&nbsp;</td>
    <td width="33" rowspan="4" valign="top">&nbsp;</td>
    </tr>
    <tr>
    <td width="472" valign="top" background="treadbg.jpg" bgcolor="#FFFFFF"><div align="left"><img src="sep.jpg" width="275" height="5"></div>
    <p align="left"><img src="headers/gallery.jpg" width="160" height="48"></p>
    <p align="left"><img src="sep.jpg" width="275" height="5"></p>
    <form action="/cgi-sys/FormMail.pl" method="post" name="name" id="name">
    <font size="2" face="Arial, Helvetica, sans-serif">
    <INPUT
    type=hidden [email protected] name=recipient>
    </font><font face="Arial, Helvetica, sans-serif">
    <P><font size="2"><B>Name</B><BR>
    <INPUT size=45 name=subject>
    </font></P>
    <P><font size="2"> <B>Address</B><BR>
    <INPUT size=45 name=realname>
    </font></P>
    <P><font size="2" face="Arial, Helvetica, sans-serif"><b>City:</b><BR>
    <INPUT size=45 name=realname2>
    </font></P>
    <P><font size="2" face="Arial, Helvetica, sans-serif"><b>State:</b><BR>
    <select name="select">
    <option value="Alabama">Alabama</option>
    <option value="Alaska">Alaska</option>
    <option value="Arizona">Arizona</option>
    <option value="Arkansas">Arkansas</option>
    <option value="California">California</option>
    <option value="Colorado">Colorado</option>
    <option value="Connecticut">Connecticut</option>
    <option value="Delaware">Delaware</option>
    <option value="Florida">Florida</option>
    <option value="Georgia">Georgia</option>
    <option value="Hawaii">Hawaii</option>
    <option value="Idaho">Idaho</option>
    <option value="Illinois">Illinois</option>
    <option value="Indiana">Indiana</option>
    <option value="Iowa">Iowa</option>
    <option value="Kansas">Kansas</option>
    <option value="Kentucky">Kentucky</option>
    <option value="Louisiana">Louisiana</option>
    <option value="Maine">Maine</option>
    <option value="Maryland">Maryland</option>
    <option value="Massachisetts">Massachisetts</option>
    <option value="Michigan">Michigan</option>
    <option>Minnesota</option>
    </select>
    </font></P>
    <P><font size="2"><strong>Zip:</strong><BR>
    <INPUT size=15 name=email>
    </font></P>
    <P><font size="2"><strong>E-mail:</strong><BR>
    <INPUT size=45 name=email2>
    </font></P>
    <P><font size="2" face="Arial, Helvetica, sans-serif"><b>Year Make &amp;
    Model of Vehicle:</b><BR>
    <INPUT size=45 name=subject2>
    </font></P>
    <P><font size="2" face="Arial, Helvetica, sans-serif">
    <INPUT name="submit" type=submit value="Send Email">
    <INPUT name="reset" type=reset value="Reset Form">
    </font></P>
    </font>
    </form>
    <p align="left"><font color="#333333" size="2" face="Arial, Helvetica, sans-serif"><img src="sep.jpg" width="275" height="5"></font></p>
    <p align="right"><font color="#333333" size="2" face="Arial, Helvetica, sans-serif"><img src="dcls.jpg" width="100" height="35"></font></p>
    </td>
    </tr>
    <tr>
    <td height="1" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
    </tr>
    <tr>
    <td height="10" colspan="5" valign="top" bgcolor="#999999">
    <div align="center"><font color="#999999">www.upshotstudios.com</font></div></td>
    </tr>
    </table>
    <map name="Map">
    <area shape="circle" coords="347,339,15" href="about.htm" target="_self">
    </map>
    </body>
    </html>
    [/code]



    Registered.pl code

    [CODE]#!/usr/local/bin/perl

    open(LIST, "<namelist.txt");
    my @names = LIST>;
    close(LIST);

    my $list="";
    for (my $i=0; $i < $names.length; $i++)
    {
    $list += "<li>"+$names[i]+"</li>";
    }

    print <<END;
    Content-Type: text/htmlnn

    !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>Drift Circuit</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body background="dcbg.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <table width="778" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">
    <tr>
    <td height="396" colspan="7" valign="top"><img src="dcnews.jpg" width="779" height="397" border="0" align="top" usemap="#Map"></td>
    </tr>
    <tr>
    <td width="28" rowspan="4" valign="top">&nbsp;</td>
    <td width="120" height="454" rowspan="3" valign="top" bgcolor="#CCCCCC">&nbsp;</td>
    <td width="5" rowspan="3" valign="top" bgcolor="#FFFFFF"> <p>&nbsp;</p></td>
    <td width="472" height="1" valign="top" bgcolor="#FFFFFF">
    <p>&nbsp;</p>
    </td>
    <td width="1" rowspan="3" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
    <td width="120" rowspan="3" valign="top" bgcolor="#CCCCCC">&nbsp;</td>
    <td width="33" rowspan="4" valign="top">&nbsp;</td>
    </tr>
    <tr>
    <td width="472" valign="top" background="treadbg.jpg" bgcolor="#FFFFFF"><div align="left"><img src="sep.jpg" width="275" height="5"></div>
    <p align="left"><img src="headers/gallery.jpg" width="160" height="48"></p>
    <p align="left"><img src="sep.jpg" width="275" height="5"></p>
    <p align="left">&nbsp;</p>
    <ol>
    $list
    </ol>
    <p align="left">&nbsp;</p>
    <p align="left"><font color="#333333" size="2" face="Arial, Helvetica, sans-serif"><img src="sep.jpg" width="275" height="5"></font></p>
    <p align="right"><font color="#333333" size="2" face="Arial, Helvetica, sans-serif"><img src="dcls.jpg" width="100" height="35"></font></p>
    </td>
    </tr>
    <tr>
    <td height="1" valign="top" bgcolor="#FFFFFF">&nbsp;</td>
    </tr>
    <tr>
    <td height="10" colspan="5" valign="top" bgcolor="#999999">
    <div align="center"><font color="#999999">www.upshotstudios.com</font></div></td>
    </tr>
    </table>
    <map name="Map">
    <area shape="circle" coords="347,339,15" href="about.htm" target="_self">
    </map>
    </body>
    </html>
    [/CODE]


    I dont really know where i made the mistake so if you could offer any help that'd be cool. thanks for all the help parlos I imagine this is almost the end of me bothering you. ?

    thanks again
    Copy linkTweet thisAlerts:
    @PalrosJun 01.2005 — line 4 of Regestered.pl should be

    my @names = <LIST>;

    as for line 13... I'm not sure where the error is there. see if fixing line 4 makes that go away.
    Copy linkTweet thisAlerts:
    @ThuroauthorJun 01.2005 — changed it, still gives me an internal server error if you would like to try it out the link is www.driftcircuit.org/cgi-bin/registered.pl
    Copy linkTweet thisAlerts:
    @PalrosJun 01.2005 — line 16 should be:
    [CODE]
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">[/CODE]


    line 24 might be the error. Instead of:
    [CODE]
    <table width="778" height="100[B]%[/B]" border="0" align="center" cellpadding="0" cellspacing="0">[/CODE]


    try:
    [CODE]
    <table width="778" height="100%" border="0" align="center" cellpadding="0" cellspacing="0">[/CODE]
    Copy linkTweet thisAlerts:
    @ThuroauthorJun 01.2005 — replaced all of that and still internal error. ?
    Copy linkTweet thisAlerts:
    @PalrosJun 02.2005 — My only other idea would be that it's complaining that namelist.txt does not exist. try creating namelist.txt (in the cgi-bin), and see if that helps.

    Other than that.. I'm out of ideas. You might want to post this in the perl forum.
    ×

    Success!

    Help @Thuro spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 6.16,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @nearjob,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,

    tipper: @meenaratha,
    tipped: article
    amount: 1000 SATS,
    )...