os_input_hidden


A hidden name/value pair within a form.

An os_input_hidden is a hidden name/value pair within an os_form . An os_input_hidden is typically used to maintain state information across multiple query-response exchanges between a browser and a CGI program.

The name and value of an os_input_hidden are specified in the constructor and can be modified through the name() and value() member functions.

An os_input_hidden element is not rendered by the browser, and its value cannot be modified by the user. The name/value pair is transmitted with those of the other input elements within the containing os_form when the os_form is submitted.

Declaration

#include <ospace/web/inhidden.h>
class os_input_hidden : public os_element

Interface

Constructor
os_input_hidden( const string& name , const string& value )
Constructs a hidden input field with the associated pair name and value.
clone
/* virtual */ os_element* clone() const
Returns a base class pointer to a heap-based deep copy of the hidden input field.
name
os_input_hidden& name( const string& name )
Sets the name to name and returns a reference to the hidden input field.
name
string name() const
Returns the name.
value
string value() const
Returns the value.
value
os_input_hidden& value( const string& value )
Sets the value to value and returns a reference to the hidden input field.

Copyright©1994-2026 Recursion Software LLC
All Rights Reserved