Re: [PHP] jquery password problem

2010-05-14 Thread Manolis Vlachakis
sorry for the off topic
it is true that  it turned out to be clearly a JS script problem ...
thanks again for the replies
problem solved then..

On 14 May 2010 16:23, Peter Lind  wrote:

> On 14 May 2010 15:16, Manolis Vlachakis 
> wrote:
> > 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
>
> Looking over your JS again (wrong mailing list for this topic,
> really), Karl was actually half past right.
>
> You need to understand urls: spaces are not kosher and will typically
> be handled one way or the other instead of just allowed. So in your JS
>
> data: "firstname="+ firstname +"& lastname="+ lastname +"& username="+
> username +"& email="+ email +"& password="+ password +"& save="+ save+"&
> user_type="+ user_type,
>
> You need to remove the space after & (you're constantly inserting
> blank spaces in your string for no reason) as I'm guessing you don't
> have any spaces inside the data you're dealing with.
>
> Regards
> Peter
>
> --
> 
> 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
> 
>



-- 
Manolis Vlachakis

Nelly's Family Hotel
Visit:   www.nellys-hotel.gr
  www.nellys.gr
Skype : manolis.vlachakis


Re: [PHP] jquery password problem

2010-05-14 Thread Peter Lind
On 14 May 2010 15:16, Manolis Vlachakis  wrote:
> 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

Looking over your JS again (wrong mailing list for this topic,
really), Karl was actually half past right.

You need to understand urls: spaces are not kosher and will typically
be handled one way or the other instead of just allowed. So in your JS

data: "firstname="+ firstname +"& lastname="+ lastname +"& username="+
username +"& email="+ email +"& password="+ password +"& save="+ save+"&
user_type="+ user_type,

You need to remove the space after & (you're constantly inserting
blank spaces in your string for no reason) as I'm guessing you don't
have any spaces inside the data you're dealing with.

Regards
Peter

-- 

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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] jquery password problem

2010-05-14 Thread Bob McConnell
From: Manolis Vlachakis

> 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,

You probably should look at the documentation for html entities and
magic quotes to see what is and is not allowed in a URL. There are a
number of characters that may be modified by either the browser or the
server before you get your hands on them.

Bob McConnell

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] jquery password problem

2010-05-14 Thread Ashley Sheridan
On Fri, 2010-05-14 at 16:16 +0300, Manolis Vlachakis wrote:

> 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  wrote:
> 
> >
> > On May 14, 2010, at 4:38 AM, Peter Lind wrote:
> >
> >  On 14 May 2010 11:29, Karl DeSaulniers  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
> >>
> >> --
> >> 
> >> 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
> >> 
> >>
> >> --
> >> 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
> >
> >
> 
> 


IIRC JQuery URL encodes any data it sends to the server, which in
Javascript terms, turns a space into a + character rather than a %20.

Thanks,
Ash
http://www.ashleysheridan.co.uk




Re: [PHP] jquery password problem

2010-05-14 Thread Manolis Vlachakis
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  wrote:

>
> On May 14, 2010, at 4:38 AM, Peter Lind wrote:
>
>  On 14 May 2010 11:29, Karl DeSaulniers  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
>>
>> --
>> 
>> 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
>> 
>>
>> --
>> 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


Re: [PHP] jquery password problem

2010-05-14 Thread Karl DeSaulniers


On May 14, 2010, at 4:38 AM, Peter Lind wrote:


On 14 May 2010 11:29, Karl DeSaulniers  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

--

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


--
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



Re: [PHP] jquery password problem

2010-05-14 Thread Peter Lind
On 14 May 2010 11:29, Karl DeSaulniers  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

-- 

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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] jquery password problem

2010-05-14 Thread Karl DeSaulniers

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+"

Not sure if that would solve your problem, but may be a problem in  
its own.


HTH some,

Karl


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[PHP] jquery password problem

2010-05-14 Thread Manolis Vlachakis
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,