At 05:05 PM 8/1/2002 -0500, Joy X George wrote:
>Any comments?
>
>
>From: Joy X George on 07/31/2002 10:43 AM
>
>To: [EMAIL PROTECTED]
>cc:
>Subject: How to print Form variable data.
>
>Can any body explain How to capture form variable values and to print it? For
>Ex: UserID and password. And where can I use those display statements- should
>be in the JavaScript or out side it? This information required for debugging
>purpose?
You mean to display the values just before the form variables are submitted
to the server?
If so, I remember your previous post has this:
>><Script language=javascript>
>><!--
>> function validate(the_form){
>> if (the_form.password.value.length > 0){
add this line:
alert("The UserID is "+the_form.login.value+" and password
is "+the_form.password.value);
I assume you are submitting "login" and "password" as the variables as
these were from your previous post.
>> the_form.submit();
>> }else{
>> alert("The password field can not be blank.");
>> }
>> }
>>//-->
>></Script>
Otherwise, if to verify the variables at the server side, add the following
to the targeted Perl script:
$query = new CGI;
print "The UserID is [", $query->param('login'), "] and password is [",
$query->param('password'), "]\n";
I hope your question is answered this time.
Jing Wee
>With Regards
>Joy
>
>
>
>
>
>
>
>_______________________________________________
>Perl-Win32-Web mailing list
>[EMAIL PROTECTED]
>To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs