?
Solved

HTML Question

Posted on 2000-03-04
4
Medium Priority
?
223 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 170 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

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

764 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