Jump to content

[SOLVED] text box vs no text box content echo


jmurch

Recommended Posts

 

I have an issue echoing a value in a text box vs not in a text box.

 

Text box:

 

echo("<div class='leftBold'>Name:</div><div class='rightTined'><input type='text' name='name' size='30' value=$name></div><br>");

 

No text box

 

echo("<div class='leftBold'>Name:</div><div class='rightTined'>".$name."</div><br>");

 

The issue is that when the variable $name (joe blow) is echoed no text box it's fine ('joe blow') when it's echoed in a text box it just displays 'joe'.

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.