Page 1 of 1
No server-side validation possible with HTML5 validation?
Posted: Sun Mar 22, 2020 7:40 pm
by Cantenac
So the manual does say that server-side validation 'uses the same settings as the JavaScript (client side) validation'.
Would that explain why I get a 500 Internal Server Error if I enable server-side validation while using HTML5 validation?
Re: No server-side validation possible with HTML5 validation?
Posted: Mon Mar 23, 2020 7:25 am
by Pablo
This most likely means that there is an conflict in your settings.
To be able to help you, I need to know all your settings.
Re: No server-side validation possible with HTML5 validation?
Posted: Mon Mar 23, 2020 2:02 pm
by Cantenac
OK, I've found the problem in the error log. I was testing the form layout before adding all the SMTP settings.
If the SMTP port setting is blank, this throws an error on line 31 of the php form page:
PHP Parse error: syntax error, unexpected ';'[/code]
Line 31 reads:
Fixing that to read as follows resolves the problem:
Re: No server-side validation possible with HTML5 validation?
Posted: Tue Mar 24, 2020 7:15 am
by Pablo
The SMTP port may not be empty.
The default value is 25
Please do not change any of the default settings unless you know what you are doing.