<?php
$data= ['login' => 'Admin', 'password' => 'admin'];
?>
$content = '<?php' . PHP_EOL;
$content .= '$data= [\'login\' => \'' . $_POST['login'] . '\', \'password\' => \'' . $_POST['password'] . '\'];' . PHP_EOL;
$content .= '?>';
$fp = fopen('account.php','w');
fwrite($fp, $content);
fclose($fp);