Am retired but still update a website for a friend www.douglasjamestraining.co.uk, consequently rusty re construction of Form Tools.
On the Courses page when completing form @ https://www.douglasjamestraining.co.uk/appform.htm ( Currently hidden ) displays web page
'Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.'
Error log shows
'douglasjamestraining.co.uk [Thu Oct 21 17:28:22 2021] [error] [client 2.217.103.171:0] AH01215: Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at FormMail.cgi line 251.'
Line 251 in CGI File shows
' if (!defined(%Form)) { &error('bad_referer') }'
Am retired but still update a website for a friend www.douglasjamestraining.co.uk, consequently rusty re construction of Form Tools.
On the Courses page when completing form @ https://www.douglasjamestraining.co.uk/appform.htm ( Currently hidden ) displays web page 'Internal Server ErrorThe server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log.'
Error log shows 'douglasjamestraining.co.uk [Thu Oct 21 17:28:22 2021] [error] [client 2.217.103.171:0] AH01215: Can't use 'defined(%hash)' (Maybe you should just omit the defined()?) at FormMail.cgi line 251.'
Line 251 in CGI File shows ' if (!defined(%Form)) { &error('bad_referer') }'
Not sure which part of code to delete
Can anyone advise