PHP code example of solo / formrestore

1. Go to this page and download the library: Download solo/formrestore library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

solo / formrestore example snippets


		echo FormRestore::restore();
	

		$age = $_POST['age'];
		if (!is_int($age))
		{
			FormRestore::saveData("my_form_id");
			// redirect to previous page here!
		}