i uses str_replace finally and it works.. but still i would like to know how this problem comes up cause i would like to be sure on whatever password is going to be used weather that is a number a letter or a combination of those two any ideas, oh and thank you for your replies ! Manolis Vlachakis On 14 May 2010 12:41, Karl DeSaulniers <karl@xxxxxxxxxxxxxxx> wrote: > > On May 14, 2010, at 4:38 AM, Peter Lind wrote: > > On 14 May 2010 11:29, Karl DeSaulniers <karl@xxxxxxxxxxxxxxx> wrote: >> >>> On May 14, 2010, at 4:01 AM, Manolis Vlachakis wrote: >>> >>> I encode my password with md5 base 64 ..on the php side but >>>> i have a problem with the POST that this function i using on my form. >>>> after posting my data + is replaced with space >>>> >>>> I came out with that explanation after a lot of tries and echos in my >>>> code >>>> files i found out that >>>> after using numbers ,onlu on that case, in the password field the space >>>> between the encoding was replaced with a + or / sometimes >>>> i tried to remove the + or / but still i get the same results >>>> any ideas >>>> >>>> >>>> data: "firstname="+ firstname +"& lastname="+ lastname +"& username="+ >>>> username +"& email="+ email +"& password="+ password +"& save="+ save+"& >>>> user_type="+ user_type, >>>> >>> >>> I don't know JQuery, but when passing a variable in a url with the "&", >>> you >>> cant have a space after the & nor a space before or after the +. >>> If that is actually what you are doing with "data". The browser may be >>> just >>> deleting the +. Not positive. >>> >>> & lastname="+ lastname +" >>> >>> needs to be >>> >>> &lastname="+lastname+" >>> >>> >> As it's javascript, those spaces are not in string: they're ignored by >> the interpreter when the string is concatenated. >> >> Regards >> Peter >> >> -- >> <hype> >> WWW: http://plphp.dk / http://plind.dk >> LinkedIn: http://www.linkedin.com/in/plind >> Flickr: http://www.flickr.com/photos/fake51 >> BeWelcome: Fake51 >> Couchsurfing: Fake51 >> </hype> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> > > Ah, ok. > > > Karl DeSaulniers > Design Drumm > http://designdrumm.com > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Manolis Vlachakis Nelly's Family Hotel Visit : www.nellys-hotel.gr www.nellys.gr Skype : manolis.vlachakis