Error when Sign Up in Portugues (CHARSET)

Issues related to the Login tools of WYSIWYG Web Builder.
Forum rules
PLEASE READ THE FORUM RULES BEFORE YOU POST:
viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/login_basics.html
http://www.wysiwygwebbuilder.com/login_tools.html

TIP:
A lot of information about the login tools can be found in the help/manual.
Also checkout the demo template that is include with the software.
Post Reply
diasmuchon
 
 
Posts: 1
Joined: Wed Jun 07, 2017 2:36 am

Error when Sign Up in Portugues (CHARSET)

Post by diasmuchon »

Hello Everyone,

I recently created a website, thus created the SIGN UP page (www.gobspbaixada.com.br/sistema_de_login.php)

However, every time a new user tries to fill it up with his/her name in Portuguese, which uses punctuation (eg.: José, Tânia...) it returns with an error message. I've tried changing the HTML PROPERTIES on the SIGN UP FORM by adding charset="ISO-8859-1" but still didn't work. Don't know what to do.

Here follows the print screen.

Sign Up Form
http://gobspbaixada.com.br/arquivos/Prints/wysiwyg2.png

HTML CODE
http://gobspbaixada.com.br/arquivos/Prints/wysiwyg1.png
User avatar
Pablo
 
Posts: 21508
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Error when Sign Up in Portugues (CHARSET)

Post by Pablo »

By default, the sign script only allows ASCII characters for security reasons.
If you need more advanced functionality then you will need to modify the script yourself.

Note that 'accept characters' has nothing to do with this. You will need to modify the PHP code.

Code: Select all

if (!preg_match("/^[A-Za-z0-9_!@$]{1,50}$/", $newusername))
{
   $error_message = 'Username is not valid, please check and try again!';
}
Warning: modifying the code/filter may affect the security of the form!
Post Reply