"Paul" <[EMAIL PROTECTED]> wrote in message
> I have a form on one server which takes a name in one field, intentionally
> including spaces as a full name. That value shows up as a form variable as
> intended when I display it on the same server. It is sent to another
> and written to a mysql database there. At that time, only the first word
> the field is written. When the value is returned by the same php script
> received and wrote the database, the only thing left in the field is the
> first word. Length of the word seems to have nothing to do with this.
> I've been pounding my head (and the keyboard with searches) over this. Do
> have to take the first entry apart with string functions to get my desired
> end, which is the entire name in one field in the database?

... make sure the value is enclosed in quotes when you try
to insert it into the database, ie

INSERT INTO table ( name ) VALUES ( '$name' )

PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to