I’ve been using a form-2-mail script successfully for a couple of years without any problems - a few weeks ago it started throwing up a load of errors after submitting the form -
About 20 lines of this code:
Notice: Use of undefined constant HTTP_HOST - assumed ‘HTTP_HOST’ in E:\domains\c*********.co.uk\user\htdocs\form-2-mail.php on line 89
Then:
Notice: Use of undefined constant required - assumed ‘required’ in E:\domains\c*********.co.uk\user\htdocs\form-2-mail.php on line 105
Notice: Use of undefined constant errorpage - assumed ‘errorpage’ in E:\domains\c*********.co.uk\user\htdocs\form-2-mail.php on line 120
Warning: Cannot modify header information - headers already sent by (output started at E:\domains\c*.co.uk\user\htdocs\form-2-mail.php:89) in E:\domains\c*.co.uk\user\htdocs\form-2-mail.php on line 121
I’ve attached the form2mail script.
I’m guessing there’s been a server upgrade as I haven’t changed anything in this script - I would really appreciate any help on sorting out this problem as my webhost has been very unhelpful with this.
Thanks.