shopp_set_formsettings()

saves a set of Shopp settings from an HTTP form request.

shopp_set_formsettings ()

@param string $name The name of the setting that is to be stored.
@param mixed $value The value saved to the named setting.
@return bool true on success, false on failure.

Description

Saves a set of Shopp settings from an HTTP form request.

Example

Create a form with named settings.

<form method="post" action="myform.php">
<div><input type="text" name="settings[my_setting1]" /></div>
<div><input type="text" name="settings[my_setting2]" /></div>
<div><input type="text" name="settings[my_setting3]" /></div>
</form>

Save those settings when handling the request.

if ( isset($_POST['settings']) ) shopp_set_formsettings();

See Also

You must be logged in to post a comment.

© Ingenesis Limited. Shopp™ is a registered trademark of Ingenesis Limited.

Skip to toolbar