Jump to content

Archived

This topic is now archived and is closed to further replies.

dottedquad

Echoeing Out A Value With Php In A Text Field...

Recommended Posts

[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

Share this post


Link to post
Share on other sites
that should work

[code]
<input name="username" type="text" id="username" value="<?PHP echo $_POST['username']; ?>">
[/code]

Share this post


Link to post
Share on other sites
[!--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 :-)

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.