Jump to content

Displaying Value in Textbox - Unexpected Results


BeanoEFC

Recommended Posts

hey Everyone,

 

Im am displaying variables in textboxs.  The problem i have is if they are more than one word long i get an unexpected result.  For Example:

$var = "hello";

This will display as expected.

$var = "hello world";

This would only display "hello"

 

The code i am using in my text box is as follows

<input name="name" type="text" onchange="funcName(this, 'inf_pdt', true);" value=<?php echo $var; ?> />

 

Please can someone help me out?

 

Thanks,

-Beano

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.