rgpost()

rgpost()

DescriptionUsageParametersExamples1. Single Input Field Type2. Multi-input Field TypeSource Code

Description
Access an input value from a POST request.
Usage
1rgpost( $name, $do_stripslashes );

Parameters

$name string
The input name that you want to access in the POST request.

$do_stripslashes boolean
Indicates if the stripslashes_deep() function should be applied to the retrieved value before it is returned. Defaults to true

Examples
1. Single Input Field Type
This example shows how you can access the value from a single input field.
1$value = rgpost( 'input_1', true );
2. Multi-input Field Type
This example shows how you can access the value from a specific input in a multi-input type field. In this example we are accessing the value from input 3 of field 1.
1$value = rgpost( 'input_1_3' );
Source Code
This function is located in gravityforms.php

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注