Home : General : Perl Programming :

General: Perl Programming: Re: [Alex] greetings all: Edit Log

Here is the list of edits for this post
Re: [Alex] greetings all
Right on,

Basically I am using an input for a form

Your Email Message:

<input id = "Email_Message" name = "Your Email Message" type = "text">

and a script check so the page does not need to refresh. Below is a sample of the script

<form method = "POST" action = "PostMail.cgi" onsubmit = "return CheckFields('Email_Message');">

var aFieldIds = CheckFields.arguments;

var sObject = document.getElementById(aFieldIds[iFieldIdx]);

if(sObject.value == "")

cErrorStr += sObject.name + "\n";


I use cgi to pull the form inputs with (ReadParse(\%hForm) or CGI::ReadParse(\%hForm) which both return the same information minus the fact that the CGI::ReadParse sorts the inputs) and what I get in the $ENV{'QUERY_STRING'} is the name as the key in the hash hForm.

My question is this, is there a way for me to tell HTTP::Form to read both the id and the name? or just the id?

from this documentation I see that its set as name here in the inputs area and I was hoping there was some way to set it up for it to read in both.

At the end of it I would like to be able to use id as the code identifier and name as some descriptor for the tag.


Hope that helps more.

Devon

Last edited by:

djorlett: Oct 15, 2003, 7:58 AM

Edit Log: