Hi,
I’m trying to make validation for my form and I have some problems with my RegEx.
I have for example a RexEx to validate the name and firstname.
‘/^[A-ZÉÏÎÈÇ A-Za-z –*)?[a-z –
The problem is that it don’t work when I’m using post values
preg_match(‘/^[A-ZÉÏÎÈÇ A-Za-z –*)?[a-z –
$_POST[‘name’] = ‘Étienne’;
But when I hardcode a value it work
preg_match(‘/^[A-ZÉÏÎÈÇ A-Za-z –*)?[a-z –
Both ways use the same RegEx why it don’t work with $_POST but it do with hardcoded value. I need to use the $
Thank you