Jump to content


Photo

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


  • Please log in to reply
2 replies to this topic

#1 dottedquad

dottedquad
  • Members
  • Pip
  • Newbie
  • 9 posts

Posted 28 June 2006 - 02:13 PM

<input name="username" type="text" id="username" <?PHP echo 'value="$_POST['username']"'; ?> >
that is giving me: Parse error: parse error, unexpected T_STRING, expecting ',' or ';' on line 8 Could anyone help me with this issue?

-Thanks

#2 Destramic

Destramic
  • Members
  • PipPipPip
  • Advanced Member
  • 913 posts
  • LocationUnited Kingdom

Posted 28 June 2006 - 02:23 PM

that should work

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


#3 dottedquad

dottedquad
  • Members
  • Pip
  • Newbie
  • 9 posts

Posted 28 June 2006 - 02:27 PM

[!--quoteo(post=388837:date=Jun 28 2006, 10:23 AM:name=Destramic)--][div class=\'quotetop\']QUOTE(Destramic @ Jun 28 2006, 10:23 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
that should work

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

Thanks! That worked :-)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users