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
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