No problem.
With the space in there, it considered Company as something separate...
-Andy
Hugh Danaher <[EMAIL PROTECTED]> wrote in message
000801c12f74$62b93020$3907f4d8@win95">news:000801c12f74$62b93020$3907f4d8@win95...
> Andy,
> Thank you.  It Works!
> Hugh
> ----- Original Message -----
> From: Andy Ladouceur <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, August 27, 2001 8:35 PM
> Subject: [PHP] Re: Need help on putting variable into <form>
>
>
> > Well,think about it like this:
> > If you did replace $comp name with ABC Company, this is what you'd get:
> >
> > <input type=text size=30 name=comp_name value=ABC Company>
> >
> > Not quite right, eh? This will solve your  problem:
> > print "<input type=text size=30 name=comp_name value=\"$comp_name\">";
> >
> > =)
> > -Andy
> > Hugh Danaher <[EMAIL PROTECTED]> wrote in message
> > 001201c12f71$75a45b40$c1fcb3d1@win95">news:001201c12f71$75a45b40$c1fcb3d1@win95...
> > Help.  I have a page with a form with lots of text boxes which can be
> filled
> > with data from a text file.  the fopen() and fgets() works, and the text
> > boxes which require numbers have no problems.  But, I have text boxes
> which
> > require several words of text and they refuse to work right.  The first
> word
> > makes it in the box, but the rest of the words are lost.
> >
> > As an example, the data file contains:  ABC Company, Inc. in the spot
for
> > $comp_name.  If I call for this variable elsewhere outside of a text
box,
> it
> > prints in full, but when used by the following, it prints only: ABC
> >
> > print "<input type=text size=30 name=comp_name value=$comp_name>";
> >
> > There must be something blindingly obvious that I'm missing.  Please
help.
> > Thanks, Hugh
> >
> >
> >
> >
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to