--- Daniel Clark <[EMAIL PROTECTED]> wrote: > > $xyz = "Hello World"; > > echo "<form><input type=test size=25 value=$xyz></form>"; > > > > The text box shows up with "Hello" NOT "Hello World". How do I get > > the entire variable? > > I would try single quotes here. > > $xyz = 'Hello World';
That's good advice in general, but this error is the fault of the output of the variable, not its creation. HTML attributes (such as value) should be quoted. Always. Hope that helps. Chris ===== My Blog http://shiflett.org/ HTTP Developer's Handbook http://httphandbook.org/ RAMP Training Courses http://www.nyphp.org/ramp -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php