| View previous topic :: View next topic |
| Author |
Message |
Aimar` Voice
Joined: 29 Aug 2007 Posts: 8
|
Posted: Wed Sep 05, 2007 3:15 pm Post subject: str_replace |
|
|
Hey, i wrote own script to fetch & display some data and now i got one outgoing variable called $username - it's first and only one arg from tcl which is POSTed in http URL to fetch back result from this query...
Now the problem is... when some1 type !command text[space]next_part
I don't want to split arguments, i just want to replace all white spaces in variable to %20
dunno how to use str_replace for that ;s
Please help me asap
Tnx in advance
Aimar |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Wed Sep 05, 2007 3:59 pm Post subject: |
|
|
I'd go for "string map"...
| Code: | | string map {" " "%20"} $username |
_________________ NML_375, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
Aimar` Voice
Joined: 29 Aug 2007 Posts: 8
|
Posted: Wed Sep 05, 2007 5:11 pm Post subject: |
|
|
thanks, love ya  |
|
| Back to top |
|
 |
|