Ok I have to say this has been the most educational experience I have ever had when it come to learning programming. Thank you for the help!!

Anyway it was suggested to me that I use HTTP authentication to identify my users. so I got it figured out and set it up and it appears to be working very well. It is doing exactly what I need but my problem is I don't fully understand how to capture the login and then pass it to a second cgi script What I have done so far is this.

#!/usr/bin/perl -w #Volunteer.pl - Sign up sheet for Volunteers use strict; use DBI; use CGI qw('standard'); use CGI::Pretty; use CGI::Cookie; my $query = CGI::Pretty->new; #my $query = CGI::new; my ($dbh, $sth,$cookie,$sess_id); my @val= (); $cookie=$query->cookie(-name=>'user', -value=>$sess_id, -path=>'cgi-bin/Signup.pl', -expires=>'+3h'); print header(-cookie=>$cookie), start_html ("Volunteer SignUp Form");
In the second script I am passing the login to I have coded this
#!/usr/bin/perl -w #Volunteer.pl - Insert Volunteers into database. use strict; use DBI; use CGI qw(:standard); my $query = CGI::new(); my ($dbh, $sth, $count); my $name = $query->param("name"); my $date = $query->param("date"); my $number= $query->param("number"); my $parent= $query->param("parent"); my $user= $query->param("user");
I am thinking that $user will then be the user logged in.

Edit ar0n -- added code tags


In reply to Capturing a secure login and sending it two s different cgi script by mnlight

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.