Io utilizzo questo metodo:

Codice PHP:
<input type="text" name="nome" value="<?php echo @$_POST['nome']; ?>" />
Oppure, come dici tu, con ajax