Re: jquery password problem
| From: | Peter Lind | Date: | Fri, 14 May 2010 09:38:18 +0000 |
| Subject: | Re: jquery password problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-305184@lists.php.net to get a copy of this message | ||
On 14 May 2010 11:29, Karl DeSaulniers <karl@designdrumm.com> 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>