用php和重音字母联系表格

时间:2018-01-25 15:51:30

标签: php

我创建了一个包含以下PHP代码的电子邮件联系表单。它工作正常,除非我在名字或姓氏字段中包含带重音的字母(例如é)。

由于这是用于通常带有重音字母的语言,有人可以查看代码并告诉我哪里出错了吗?

The icon position is not configurable, and iOS will swap sides of the 
icon depending on where the app icon is placed.  For example, if the 
app icon on the left side of the screen the icon in the shortcut menu 
will appear on the left, but if the app is on the right side of the 
screen then the shortcut menu items will be on the right.  In general, 
the shortcut menu icons will be positioned so that they are directly 
above or below the app's icon. 

1 个答案:

答案 0 :(得分:0)

将$ string_exp var代码更改为:

$string_exp ='~[^\\pL\d]+~u';