For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > February 2005 > Can't get POST values. HELP









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Can't get POST values. HELP
surfcaster

2005-02-27, 3:55 am

Help, I can not get this perl script (partial) to read the values set in
the html when the Submit button is set. I know the POST will send my the
correct $ENV{'CONTENT_LENGTH'} because I can see it change when I change
the length of the input. I know when I change the POST to GET the data is
appended the the name=value. I can also read all the $query->param's.

You can post all the links to all the examples, I have tryed them all
and they all seem so simple.

Whelp thanks for looking anyways
Stan


#!/usr/bin/perl -w

use CGI; # don't need qw(:standard)
use warnings;
use strict;
use DBI;

my $name = "";

$name = $query->param('Name');

print "Your name is :"; print $name; print "\n<BR>";

===================== HTML ===========================
<tr>
<td width="22%" height="25" align="right" bgcolor="#808080"><font
face="Seagull" color="#0000FF">Enter
your name</font></td>
<td width="86%" height="25"> <input type="text" name="Name"
size="50">
or handle?</td>
</tr>
<tr>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com