form_hidden

Versions
4.6
form_hidden($name, $value)

Store data in a hidden form field.

This function can be useful in retaining information between page requests, but be sure to validate the data on the receiving page as it is possible for an attacker to change the value before it is submitted.

Parameters

$name The internal name used to refer to the field.

$value The stored data.

Return value

A themed HTML string representing the hidden field.

Related topics

▾ 34 functions call form_hidden()

aggregator_form_category in modules/aggregator.module
aggregator_form_feed in modules/aggregator.module
book_form in modules/book.module
Implementation of hook_form().
comment_admin_edit in modules/comment.module
Menu callback; edit a comment from the administrative interface.
comment_render in modules/comment.module
fileupload_form in developer/examples/fileupload.module
filter_admin_delete in modules/filter.module
Menu callback; confirm deletion of a format.
filter_form in modules/filter.module
Generate a selector for choosing a format in a form.
form_checkbox in includes/common.inc
Format a checkbox.
form_checkboxes in includes/common.inc
Format a set of checkboxes.
form_token in includes/common.inc
Generate a form token based on the session and the private key to defend against cross site request forgeries.
forum_form_container in modules/forum.module
Returns a form for adding a container to the forum vocabulary
forum_form_forum in modules/forum.module
Returns a form for adding a forum to the forum vocabulary
locale_admin_manage_delete_screen in modules/locale.module
User interface for the language deletion confirmation screen
menu_edit_item_form in modules/menu.module
Present the menu item editing form.
node_admin_nodes in modules/node.module
Generate the content administration overview.
node_delete in modules/node.module
Ask for confirmation, and delete the node.
node_form in modules/node.module
Generate the node editing form.
path_form in modules/path.module
Return a form for editing or creating an individual URL alias.
path_nodeapi in modules/path.module
Implementation of hook_nodeapi().
poll_form in modules/poll.module
Implementation of hook_form().
poll_view_voting in modules/poll.module
Generates the voting form for a poll.
queue_view in modules/queue.module
Display a queued node along with voting options for it.
system_module_listing in modules/system.module
Generate a list of all the available modules, as well as update the system list.
system_theme_listing in modules/system.module
Generate a list of all the available theme/style combinations.
taxonomy_form_term in modules/taxonomy.module
taxonomy_form_vocabulary in modules/taxonomy.module
theme_comment_form in modules/comment.module
theme_confirm in includes/theme.inc
Output a confirmation form
user_admin_access_check in modules/user.module
Menu callback: check an access rule
user_register in modules/user.module
_forum_confirm_delete in modules/forum.module
Returns a confirmation page for deleting a forum taxonomy term
_taxonomy_confirm_del_term in modules/taxonomy.module
_taxonomy_confirm_del_vocabulary in modules/taxonomy.module

Code

includes/common.inc, line 1373

<?php
function form_hidden($name, $value) {
  return '<input type="hidden" name="edit['. $name .']" value="'. check_plain($value) ."\" />\n";
}
?>
Login or register to post comments
 
 

All source code and documentation on this site is released under the terms of the GNU General Public License, version 2 and later. Drupal is a registered trademark of Dries Buytaert.