Solved

HTML Question

Posted on 2000-03-04
4
174 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to embed Flash content in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <object> tag to embed Flash content.: To specify that the object is Flash content, d…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

771 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

13 Experts available now in Live!

Get 1:1 Help Now