Re: Retrive a ID or Class value from a form input field

From: Date: Mon, 09 Jun 2008 20:02:58 +0000
Subject: Re: Retrive a ID or Class value from a form input field
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-275158@lists.php.net to get a copy of this message
On Mon, 2008-06-09 at 14:45 -0500, Joe Harman wrote: > Hello, > > is there any way to get more field information other than just the > value of a field when a form is submitted??? > > ex: > <input name="email" type="text" id="email" > size="30" maxlength="120" > class="theClass" value="" /> <input type="hidden" name="email__config" value="name=email,type=text,id=email,size=30,maxlength=120,class=theClass" /> Alternatively fill the value of the hidden field using JavaScript at submission time. Of course... that only works when JavaScript is enabled. Cheers, Rob. -- http://www.interjinn.com Application and Templating Framework for PHP

« previous php.general (#275158) next »