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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jim Lucas wrote:
Jim Lucas wrote:
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="" />

type, size, class, etc.

Thanks
Joe


Yes, but that would be a Javascript question.

Google for a javascript method called getAttribute()


Man, what a day.

I should have said it like this.

No, but in javascript, before the form is submitted, you can.

then....


Let me ask this.  Why would you want to do this?

--
Jim Lucas

   "Some men are born to greatness, some achieve greatness,
       and some have greatness thrust upon them."

Twelfth Night, Act II, Scene V
    by William Shakespeare


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux