Page 1 of 1

Can't put the whole date in a text box?

Posted: Fri Jan 31, 2003 3:07 pm
by slipstream
I grab the date like this :

$today = date("F j, Y");

then I put it in a text box like this:

echo 'Date <input type="text" name="date" value='.$today.'>';

It works but I only see the month, the day and year doesn't shoe in the text box. However it shows when I echo it. Why?

Posted: Fri Jan 31, 2003 6:12 pm
by oldtimer
What is the length of the text box? Like is the month and day running into the right hand side of the box? If so just increase the size of it.

Code: Select all

<input name="textfield" type="text" size="40">

Yep

Posted: Mon Feb 03, 2003 10:32 am
by slipstream
got it, thanks...