[Solved] Need preview page before send email [closed]

Further to my comment, what I mean by splitting up the sendMail.php (you will, of course, have to modify your main page javascript to accommodate a confirm response from your sendMail.php): if(isset($_POST[‘data’]) && is_array($_POST[‘data’]) ) { foreach($_POST[‘data’] as $data) { } $datatList = implode(‘, ‘, $_POST[‘data’]); } else $datatList = $_POST[‘data’]; if(!isset($_POST[‘confirm’])) { $name = … Read more