Description
Process the signup form for the squeeze pageNote: We can force processing by setting "submit" to true in $atts This overrides the value in the $_REQUEST
Usage
oiksp_process_squeeze_form( $atts );Parameters
- $atts
- ( mixed ) required –
Returns
voidSource
File name: oik-squeeze/shortcodes/oik-squeeze.phpLines:
1 to 11 of 11
function oiksp_process_squeeze_form( &$atts ) { $submit = bw_array_get( $_REQUEST, "oiksp_squeeze", null ); $submit = bw_array_get( $atts, "submit", $submit ); if ( $submit ) { // Here we check the fields and redirect to the opted-in page if everything is OK $atts['double']=oiksp_get_double( $atts['oiksp_id'] ); } $result = oiksp_validate_fields( $atts ); bw_trace2( $result, "result"); return( $result ); }View on GitHub
Invoked by
Calls
1 to 5 of 5
- bw_array_get() – Return the array[index] or array->index (for an object) or a default value if not set
- bw_trace2() – Trace $value to the trace log file if tracing is active
- oiksp_get_double() – Retrieve the double opt-in requirement of the opted-in page
- oiksp_redirect() – Redirect to the opted-in page passing the required values
- oiksp_validate_fields() – Validate the fields on the form
