Jump to content

trim()


boo_lolly

Recommended Posts

my pre-populated input fields are ending the value as soon as it hits a whitespace. for example. one input field that is pre-populated has an address. 1234 SomeStreet, right? well, the input field will only display 1234. is there a way or a function that is the antithesis of trim()? is this how i would fix the problem?
Link to comment
https://forums.phpfreaks.com/topic/28910-trim/
Share on other sites

[quote author=boo_lolly link=topic=116765.msg475914#msg475914 date=1164836779]
my pre-populated input fields are ending the value as soon as it hits a whitespace. for example. one input field that is pre-populated has an address. 1234 SomeStreet, right? well, the input field will only display 1234. is there a way or a function that is the antithesis of trim()? is this how i would fix the problem?
[/quote]

perhaps replacing your spaces with %20 ? I don't really get what your asking here, so just a thought as it worked for me on an issue I was having like that with Javascript.
Link to comment
https://forums.phpfreaks.com/topic/28910-trim/#findComment-132372
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.