Jump to content
xisto Community
Sign in to follow this  
Duckie

Need Help With Urls

Recommended Posts

OK uh how do i make a script to where it would auto replace spaces in aim names with + but it appears with a space on the site, with the aimgo: url cmd.. so like

asdf asdf sdf

would be in the code:

<a href="aim:goim?screenname=asdf++asdf+sdf&message=boo"></a>


and i have an auto thing, where i add a member, but how would it replace cause like i have a Edit Profile section with lazy ppl forgetting to put the + in between spaces

thanks~
if u have ne q's ask me at aim ARandomDot

thanks in advance

Share this post


Link to post
Share on other sites

explode takes a string and breaks it up into an array while implode "glues" an array back together, so if you used explode and implode you would have to do something like this:

implode("+",explode(" ",$string));
which is a huge waste of code and processor time.

I would suggest using str_replace if you want to use php for this.
str_replace(" ","+",$string);

If you don't want to use php javascript has a very similar function:
string.replace(" ","+");

If you gave me some code on your website I could help implement it for you.
Edited by alex7h3pr0gr4m3r (see edit history)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | 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.