Results 1 to 3 of 3

Thread: HTML hidden variable?

  1. #1
    Join Date
    Apr 2008
    Location
    Im currently studying in stockholm,sweden.
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HTML hidden variable?

    Can anybody explain to me what this part of code actually means?
    <FORM ACTION="http://www.yellowpages.com.jo/pj.pl" METHOD="POST" NAME="mainform">
    <INPUT TYPE="HIDDEN" NAME="T" VALUE="PJ">
    <INPUT TYPE="HIDDEN" NAME="L" VALUE="en">
    <INPUT TYPE="HIDDEN" NAME="OP" VALUE="PJ2">
    <INPUT TYPE="HIDDEN" NAME="OFF" VALUE="0">

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    it is a form to submit some type of hidden information to the url by the POST method
    http://www.yellowpages.com.jo/pj.pl

    (POST VARIABLE) T VALUE PJ
    (POST VARIABLE) L VALUE en
    (POST VARIABLE) OP VALUE PJ2
    (POST VARIABLE) OFF VALUE 0

  3. #3
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Hidden information is no different in a form than any other field, except in how it is displayed. (Well, at least compared to the type "text".)

    For example, the "password" type field does nothing to the data, but just makes it ***** instead of text, when typing. So, the type is just to tell the browser what to do with it. The hidden type is not displayed on the page and acts as extra information sent on by form to the next page, like maybe your current score, or something. It's not secure, though, because it can be viewed in the source and manipulated by Javascript.
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •