dottedquad Posted June 28, 2006 Share Posted June 28, 2006 [code]<input name="username" type="text" id="username" <?PHP echo 'value="$_POST['username']"'; ?> >[/code] that is giving me: Parse error: parse error, unexpected T_STRING, expecting ',' or ';' on line 8 Could anyone help me with this issue?-Thanks Link to comment https://forums.phpfreaks.com/topic/13110-echoeing-out-a-value-with-php-in-a-text-field/ Share on other sites More sharing options...
Destramic Posted June 28, 2006 Share Posted June 28, 2006 that should work[code]<input name="username" type="text" id="username" value="<?PHP echo $_POST['username']; ?>">[/code] Link to comment https://forums.phpfreaks.com/topic/13110-echoeing-out-a-value-with-php-in-a-text-field/#findComment-50412 Share on other sites More sharing options...
dottedquad Posted June 28, 2006 Author Share Posted June 28, 2006 [!--quoteo(post=388837:date=Jun 28 2006, 10:23 AM:name=Destramic)--][div class=\'quotetop\']QUOTE(Destramic @ Jun 28 2006, 10:23 AM) [snapback]388837[/snapback][/div][div class=\'quotemain\'][!--quotec--]that should work[code]<input name="username" type="text" id="username" value="<?PHP echo $_POST['username']; ?>">[/code][/quote]Thanks! That worked :-) Link to comment https://forums.phpfreaks.com/topic/13110-echoeing-out-a-value-with-php-in-a-text-field/#findComment-50413 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.