# smart-forms/trunk/smart_forms_uploader.php

Smart Forms – when you need more than just a contact form, version trunk. 22 lines.

- Page: https://pluginprobe.com/plugins/smart-forms/trunk/code/smart_forms_uploader.php
- Raw: https://pluginprobe.com/plugins/smart-forms/trunk/raw/smart_forms_uploader.php
- Modified: 2021-08-17T19:22:56+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/smart-forms/trunk/code/smart_forms_uploader.php#L10-L20`.

```php
<?php
$data="";
if(isset($_POST["data"]))
	$data= sanitize_text_field(stripslashes($_POST["data"]));


require_once SMART_FORMS_DIR.'utilities/JSONSanitizer.php';
$data=RednaoJSONSanitizer::Sanitize(json_decode($data,true),(object)
    ["formid"=>'',
      "action"=>''
        ]);

foreach($data as $key=>$value)
{
	if($key=='captcha'||$key=='nonce')
		$_POST[$key]=$value;
	else
		$_POST[$key]=addslashes($value);
}
require_once "smart-forms-ajax.php";
rednao_smart_forms_save_form_values();

```
