This works:
<input type="text" name="foo" value="<?php echo isset($_POST['foo']) ? $_POST['foo'] : '' ?>"/>
This does not:
echo('<input type="text" name="foo" value="'.isset($_POST['foo']) ? $_POST['foo'] : ''.'"/>');
Notice: Undefined index: foo in /srv/www/form.php on line 15
Thanks for any help.