# and saved on the server within a specific folder. # # Can anyone who want to modify or development (add some functions, styles),# # and use it in his dite, or commercially. # # # # so if you have any question -> ask me on m.anzawi2013@gmail.com # # or visit my blog on http://www.phptricks.org # #---------------------------------------------------------------------------# $temp = new Template(); $subsc = new Subscribe(); if (isset($_POST['send'])) { $send = new Sender(); $tempName = str_replace('.html', '', $_POST['tempName']); $templ['content'] = $temp->getContent($tempName); $templ['title'] = $_POST['title']; $emails = $_POST['subsc']; if ($send->sendNewsLitter($emails, $templ)) { echo "Send Succcessfuly"; } else { echo "Unabl to Send"; } } ?> <form method="POST"> <div style="width:20%; float: left;"> Message Title : <input type="text" name="title"><br><br> <h3>Choice Template</h3> <?php foreach ($temp->show() as $template) { ?>