cosi è sbagliata??

echo '<input type="hidden" name="id" value=$id >';