Solved

HTML Question

Posted on 2000-03-04
4
186 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

This article discusses how to create an extensible mechanism for linked drop downs.
Find out what you should include to make the best professional email signature for your organization.
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now