Greetings Perl-Gurus;
I'm trying to learn how to append data via the "GET" command within a HTML
form used on the command line < Form Action = "/www/cgi-bin/" Method="GET">
Now the way I understand this is that after I submit data via the HTML form
the GET via this
command line;ie  < Form Action = "/www/cgi-bin/" Method="GET"> calls my
below CGI script
and its suppose to create a HTML form file to be displayed with the appended
data from the below example URL string
URL =
candidate=Juan+Amore&position=Technician&education=Professional+Certificatio
n&RESULT_FileUpload-7=&RESULT_TextArea-8=&Submit=Submit>
Any examples on this section?

Best Rgds
JA

#!/usr/bin/perl -w
# Copy form data from the environment variable

$form_data = $ENV{'QUERY_STRING'};

$form_data =~ s/%([\dA-Fa-f][\dA-Fa-f])/pack ("C",hex ($1))/eg;

# Replace the + char with space char.

$form_data =~ s/\+/ /g;

# Split $form_data into name/value pairs
@fields = split (/&/, $form_data);

# Init script variables with form data values
# $form_name is the name from the form.
# from the text fields...

($form_name, $candidate) = split (/=/, $fields[0]);
($form_name, $position) = split (/=/, $fields[1]);
($form_name, $education) = split (/=/, $fields[2]);

$form_name > dataform.html


# Send back to the user a confirmation.

print << "END_OF_REPLY";
<Content-type: text/html>
END_OF_REPLY

<HTML>
<HEAD>
<TITLE>Confirmation Mesg</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=5>Thanks $first! 
We'll send you your: $status.</FONT></P>
</BODY>
</HTML>
END_OF_REPLY



 <<...OLE_Obj...>> 
Juan Amore HPCS ENGINEERING 1-748-8789


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to