[HTML_AJAX-devel] Problem with character escaping

Joshua Eichorn josh at bluga.net
Wed Jul 12 11:25:10 PDT 2006


I would say you shouldn't send a regex from JS to PHP and then run it.

That being said, are you using a 0.5.0 pre-release where you update the 
escaping code or 0.4.1
-josh
Miguel Manso wrote:
> Hi.
>
> I need to save the following string: /^(+351)\d{9}$/
>
> I am passing it through a html form using POST and HTML_AJAX.formSubmit.
>
> When i grab the value on the PHP side through $_POST var i get: /^( 
> 351)\\d{9}$/
>
> The double backslash i can understand and its easy to get rid of, but 
> what i can't find a workaround is the + that just vanished...
>
> I tried the same values on normal form with PHP's $_POST and got: 
> /^(+351)\\d{9}$/
> Still have the double backslash, but the + sign is still there.
>
> Am i doing something wrong or is this suppose to be like this?
>
> Thanks
>
> Miguel Manso
> _______________________________________________
> Html_ajax-devel mailing list
> Html_ajax-devel at lists.bluga.net
> http://lists.bluga.net/mailman/listinfo/html_ajax-devel



More information about the Html_ajax-devel mailing list