Ask a Question related to PHP Development, Design and Development.
-
Portfar #1
PHP & MySQL :- and input text fields -perlexing!!!
Hi
Could anyone help with this perplexing problem.
When I make a form on typical text fields and try to put values into
those fields from a Mysq query then for some reason the value passed
gets chopped of at the first space.
The form is meant to allow a user to change personal details and so
what I want to do is present a form filled in with the current
details and all a user has to do is write over the ones they want to
change.
BUT....
say a person has a name PAUL JONES... getting this from the DB is no
problem but putting it in the text field it gets chopped up at the
first space so only the word PAUL shows up.
DOES ANYONE KNOW WHY, AND HOW I GET AROUND THIS.
THANKS for any HELP
PF
Portfar Guest
-
MySQL import gets SQL errors because of text in fields
I'm using PHPMyAdmin on an Apache2Triad install (latest version; 5.x.x, which installs PHP5 and PHPMyAdmin5 as well). In Access, I exported a table... -
Create Dynamic Input Names or Input Fields in Asp
I have a little code to add multiple items to a shopping cart based page. This code works perfect, but it adds all of the info to the same input... -
text input of date and timestamp fields
I'm working on a PHP frontend for a PostgreSQL db and I'm looking for the best way to create date or timestamp inputs. Let's take a date in the... -
ASP & Mysql - Problem with blank text fields
I hadn't realized I had invalid information in my mail client, I have updated it and have re-posted to provide accurate information. "Test"... -
DW crashing changing input text fields
I can't duplicate that one... Have you tried re-creating yout site cache? MX is like a box of chocolates - Someone's usually eaten the good... -
eclipsboi #2
Re: PHP & MySQL :- and input text fields -perlexing!!!
Are you doing:
<input type=text name=whatever value=<?php echo $whatever_value;?>>
Or are you doing:
<input type="text" name="whatever" value="<?php echo
$whatever_value;?>">
Notice the difference between the two; the first, having no quotes
would mean any value with a space in it would get chopped, as you say.
The latter, having quotes, would display the entire value for
whatever_value, spaces and all.
On Tue, 22 Jun 2004 22:24:26 +0100, Portfar <portfar@hotmail.com>
wrote:
>
>
>Hi
>
>Could anyone help with this perplexing problem.
>
>When I make a form on typical text fields and try to put values into
>those fields from a Mysq query then for some reason the value passed
>gets chopped of at the first space.
>
>The form is meant to allow a user to change personal details and so
>what I want to do is present a form filled in with the current
>details and all a user has to do is write over the ones they want to
>change.
>
>BUT....
>
>say a person has a name PAUL JONES... getting this from the DB is no
>problem but putting it in the text field it gets chopped up at the
>first space so only the word PAUL shows up.
>
>
>DOES ANYONE KNOW WHY, AND HOW I GET AROUND THIS.
>
>
>THANKS for any HELP
>
>
>PFeclipsboi Guest
-
entoone #3
Re: PHP & MySQL :- and input text fields -perlexing!!!
How big is the field in the database? is it large enough to hold the
information being typed into the field?
is the field set for varchar ? or ??
"Portfar" <portfar@hotmail.com> wrote in message
news:6d8hd0l6eooda1tpj8852nvil7elbif5d9@4ax.com...>
>
> Hi
>
> Could anyone help with this perplexing problem.
>
> When I make a form on typical text fields and try to put values into
> those fields from a Mysq query then for some reason the value passed
> gets chopped of at the first space.
>
> The form is meant to allow a user to change personal details and so
> what I want to do is present a form filled in with the current
> details and all a user has to do is write over the ones they want to
> change.
>
> BUT....
>
> say a person has a name PAUL JONES... getting this from the DB is no
> problem but putting it in the text field it gets chopped up at the
> first space so only the word PAUL shows up.
>
>
> DOES ANYONE KNOW WHY, AND HOW I GET AROUND THIS.
>
>
> THANKS for any HELP
>
>
> PF
entoone Guest
-
Portfar #4
Re: PHP & MySQL :- and input text fields -perlexing!!!
On Tue, 22 Jun 2004 21:54:54 GMT, eclipsboi <eclipsboi@hotmail.com>
wrote:
Thanks very much, that seems to have totally got rid of the problem.>Are you doing:
>
><input type=text name=whatever value=<?php echo $whatever_value;?>>
>
>Or are you doing:
>
><input type="text" name="whatever" value="<?php echo
>$whatever_value;?>">
>
>Notice the difference between the two; the first, having no quotes
>would mean any value with a space in it would get chopped, as you say.
>The latter, having quotes, would display the entire value for
>whatever_value, spaces and all.
>
>
Thankyou fro your help, much appreciated.
PF
Portfar Guest



Reply With Quote

