<?php $r = md5(rand().microtime(TRUE)); $_POST = [ $r => 'theSubmittedUsername', '__autocomplete_fix_' . $r => 'username' ]; foreach ($_POST as $key => $val) { $newKey = preg_replace('~^__autocomplete_fix_~', '', $key, 1, $count); if ($count) { $_POST[$val] = $_POST[$newKey]; unset($_POST[$key], $_POST[$newKey]); } } var_export($_POST);
You have javascript disabled. You will not be able to edit any code.