Blanks in PHP

by "Sue Bailey" <sue(at)bartandsue.co.uk>

 Date:  Wed, 24 May 2000 01:06:31 +0100
 To:  <hwg-languages(at)hwg.org>
  todo: View Thread, Original
Can I just say first of all, thanks for everyone's help in fathoming
PHP/mySQL; this list is brilliant! Now, onto today's problem...

I'm now adding stuff into my lovely new database (!) and one of the fields I
want to be filled via an option list. Most of the entries on this list are
one word, but a couple aren't; problem is, when I output the results of the
ones with spaces in PHP, it misses out everything after the first space. I
tried replacing the space with %20, which it turned into a + ; I tried
putting in a + and it just went back to losing everything after the space, I
even tried &nbsp; and that turned into a + as well (I think, I'm going a bit
cross-eyed by now). This isn't happening with any other type of form field,
and it's just ordinary old varchar in the table; and it would be perfectly
possible to turn this into a text box....and I would, except it's annoyed me
now!

Anybody got any idea what I'm doing wrong? (The server's running php3, if
that makes any difference.)

TIA

Sue

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA