How do I use update_option to give me a new option name each time a form is submitted? [duplicate]

To update a new option name each time you need something unique to be used as option name so may be using ‘time’ in the option name

$now = new DateTime();
$mytime = $now->format('Y-m-d H:i:s');    // MySQL datetime format
// $now->getTimestamp();           // Unix Timestamp

$option['prefix-'.$mytime] = 'your value';

Then you can update as you wish.

To recall it will be a bit hard code. You have to get all value that start with prefix and manual parse the date time to get the newest one. This method is easy to create but a bit more step when using.

Hope it help