Textboxes

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sixspeed
Forum Newbie
Posts: 1
Joined: Thu Aug 10, 2006 1:46 pm

Textboxes

Post by sixspeed »

Hi,

i am having a problem with my php page, what the program does is: a user types a serial number on one page then brings up another page, it pulls all the data from a mysql database and populates all the fields. Now the problem is for example; a unit description, the textbox on the php page will only display characters up until a space then stop for example:

database record
chassis has 6 blades

textbox on php page
chassis

- i have tried to echo the varible to see what it shows and it shows the full sentence so the varible is good i just dont know why when i put it in a box it doesn't show the whole string

Any help would be great

thanks alot ! :D
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post by Ollie Saunders »

html attributes should be quoted:

This...

Code: Select all

<input type=text value=hello, world>
...is really really bad form...

While this

Code: Select all

<input type="text" value="hello, world" />
...ahhh, makes me feel all warm and fuzzy inside.

If that doesn't solve the problem, post some code. Without code I can only guess from clues.
Post Reply