Jump to content

PHP Echo within a Print


01hanstu

Recommended Posts

Hi,

I am trying to get the form field to echo a php variable. The problem is that the form is 'Printed' via php.

 

print "<td width=\"300\" valign=\"top\"><input type=\"text\" name=\"usr\"  value=\"i.e. JBloggs \" onfocus=\"if(!this._haschanged){this.value=''};this._haschanged=true;\" tabindex=\"1\"></td>";

 

Instead of the value being i.e. JBloggs have it echo the $name variable.

 

Any input would be appreciated.

Link to comment
https://forums.phpfreaks.com/topic/258848-php-echo-within-a-print/
Share on other sites

Archived

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

×
×
  • Create New...

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.