Update depreciated split()
Replace split() with explode() Update version number, copyright, and header formatting.
This commit is contained in:
parent
b73da4fd8a
commit
6a8bb1e9da
28
sendform.php
28
sendform.php
|
|
@ -1,18 +1,18 @@
|
|||
<?php
|
||||
/************************************************************************
|
||||
* SendForm Version 0.99 *
|
||||
* Created 10 May 2005 *
|
||||
* Modified 04 Nov 2010 *
|
||||
* Questions/Comments: eric.fawcett@gmail.com *
|
||||
* *
|
||||
* COPYRIGHT NOTICE *
|
||||
* Copyright 2010 Eric T. Fawcett *
|
||||
* *
|
||||
* Any part of SendForm can be used or modified in anyway so long *
|
||||
* as this copyright notice and the above comments stay intact. *
|
||||
* *
|
||||
* By using this code you agree to indemnify Eric T. Fawcett *
|
||||
* from any liability that might arise from its use. *
|
||||
* SendForm Version 0.99.1 *
|
||||
* Created 10 May 2005 *
|
||||
* Modified 12 Oct 2017 *
|
||||
* Questions/Comments: eric.fawcett@gmail.com *
|
||||
* *
|
||||
* COPYRIGHT NOTICE *
|
||||
* Copyright 2017 Eric T. Fawcett *
|
||||
* *
|
||||
* Any part of SendForm can be used or modified in anyway so long *
|
||||
* as this copyright notice and the above comments stay intact. *
|
||||
* *
|
||||
* By using this code you agree to indemnify Eric T. Fawcett *
|
||||
* from any liability that might arise from its use. *
|
||||
************************************************************************/
|
||||
session_start();
|
||||
// $referals is a list of web site domains seperated by commas. Only requests originating from
|
||||
|
|
@ -130,7 +130,7 @@
|
|||
}
|
||||
// Check for all user required fields
|
||||
if(isset($_POST['required'])) {
|
||||
$urequired = split(",", "recipient, " . $_POST['required']);
|
||||
$urequired = explode(",", "recipient, " . $_POST['required']);
|
||||
foreach($urequired as $req) {
|
||||
$req = trim($req);
|
||||
if($req == "email" && isset($_POST[$req]) && !validemail($_POST[$req]))
|
||||
|
|
|
|||
Loading…
Reference in New Issue