Search found 5 matches

by helpercenter
Wed Feb 13, 2008 3:03 pm
Forum: PHP - Code
Topic: special characters in firefox
Replies: 3
Views: 65

Re: special characters in firefox

hi !

thank you for your reply.

I used now following code and it worked. Do you know another idea ?

Code: Select all

$yourname       = htmlentities(trim($yourname),ENT_QUOTES,'utf-8');
thank you
by helpercenter
Wed Feb 13, 2008 11:37 am
Forum: PHP - Code
Topic: special characters in firefox
Replies: 3
Views: 65

special characters in firefox

hi! so I have made a simple form, which can send a name like "Frédéric" to the same php file. If I try to get the value with $_GET or $_REQUEST, I get "Frédéric" but if I apply htmlentities($name), it puts me out :Frédéric whats wrong with it ? I tried already to apply html_ent...
by helpercenter
Sun Feb 10, 2008 11:57 am
Forum: PHP - Code
Topic: Regular expression (eacute)
Replies: 3
Views: 270

Re: Regular expression (eacute)

problem solved. thank you!
by helpercenter
Sun Feb 10, 2008 3:12 am
Forum: PHP - Code
Topic: Regular expression (eacute)
Replies: 3
Views: 270

Re: Regular expression (eacute)

Hi, Thank you for your reply! I have tested it now: if(preg_match("/^[\w-']+$/i", html_entity_decode($yourname))) { echo " ok"; } else { echo " error"; } but if I enter "test" - result "ok" if I enter "test123" - result "ok" <-- b...
by helpercenter
Sat Feb 09, 2008 5:17 pm
Forum: PHP - Code
Topic: Regular expression (eacute)
Replies: 3
Views: 270

Regular expression (eacute)

Hi! I have the following problem : I want to test following strings with a regular expression (it is for testing names) : O'Connor Anne-Marie Frédéric Geneviève ... and names including à, ä, ... They should NOT contain numbers, *,%,&,/,. ... I tried already this expression (without success) : $r...