HELP!! Problem truncating values when editing!!!!

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
webappgeek
Forum Newbie
Posts: 2
Joined: Fri Nov 21, 2008 4:28 pm

HELP!! Problem truncating values when editing!!!!

Post by webappgeek »

:banghead:
The code I have to put into the text field for editing is:

Code: Select all

Truck Co: <input type='text' name='trkgco' size='100' value=<?php echo $trkgco; ?>
But at top of page I do an echo of the value and it has the correct data.

The value of the data can be any trucking company name such as Marten Transport Ltd

But all that shows up is Marten.

Can someone tell me what I need to do to fix this?

______________________________________________________
Webappgeek

SO much time and SO little to do!
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: HELP!! Problem truncating values when editing!!!!

Post by requinix »

You're using quotes around the type, name, and size, so why not try it for the value too?
webappgeek
Forum Newbie
Posts: 2
Joined: Fri Nov 21, 2008 4:28 pm

Re: HELP!! Problem truncating values when editing!!!!

Post by webappgeek »

tasairis wrote:You're using quotes around the type, name, and size, so why not try it for the value too?
Thx!! That was it! Thanks alot. :lol:
Post Reply