Solved

HTML Question

Posted on 2000-03-04
4
212 Views
Last Modified: 2010-04-09
How to use the Hidden Type in HTML Forms ??
How to retrive the value in the Hidden Type ??
0
Comment
Question by:yammanur
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
4 Comments
 
LVL 6

Expert Comment

by:andreif
ID: 2583651
You can add hidden fields to HTML forms:
<input name=field_name type=hidden value=some_value>

it works like an usual text input with one difference: it's hidden and user can't change the value.

With the best regards,
andreif
0
 
LVL 1

Expert Comment

by:drom
ID: 2584534
there is no difference between type="hidden" and type="text" of INPUT tag besides user interaction. usage, retrieving with scripts, get or post are the same.
or what do you have in mind?
0
 
LVL 8

Expert Comment

by:xabi
ID: 2584594
here goes an example:

<form name="myform" ...>
<input type="hidden" name="myfield" value="hi there">

to retriebe the value via javascript do this:

<script language="javascript">
<!--
myvalue = document.myform.myfield.value
alert(myvalue)
//-->
</script>

xabi
0
 
LVL 1

Accepted Solution

by:
man068 earned 85 total points
ID: 2587760
here is how you can do it

<form name="form1" action="cgi-bin/script" method="post">
<input type="hidden" name="password" value="some value">
</form>
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Ajax on ASP 2 66
HTML editor custom button 3 84
Add Rows on a Table 8 50
SSL unsecure page mystery 17 45
This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
This article discusses four methods for overlaying images in a container on a web page
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…

737 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question