I have downloaded a contact form form the web. On one part (class.phpmailer.php
) on line 470 it uses:
$toArr = split(',', $to);
Of course this is depreciated. I have searched the web for answers (and read the php syntax), and it says use explode()
or preg_split()
.
I have tried both of these, but when I submit the contact form nothing happens. The data stays but the captcha changes. I also put:
$toArr = split('!,!', $to);
Again, the form would not submit.
Could somebody please tell me how to fix this ?
EDIT: The error was nothing to do with explode/preg_split - it was a missing html tag I believe.