Open franicas opened 9 years ago
Need config. the wizard to send the form. That send the form when click the button Finish
<script>
$(document).ready(function() {
$('#wizard').smartWizard({
onFinish:onFinishCallback
});
$('.buttonNext').addClass('btn btn-success');
$('.buttonPrevious').addClass('btn btn-primary');
$('.buttonFinish').addClass('btn btn-default');
function onFinishCallback(objs, context){
$('form').submit();
}
});
</script>
-in smartwizard2-validation.php -I have change: form action="#" method="POST" input type='hidden' name="issubmit" value="1" -with: form action="invio_rich.php" method="POST" input type='hidden' name="issubmit" value="1" -but not send. the file invio_rich.php is this: <?php $rich = isset($_POST['rich']); $cogn = isset($_POST['firstname']); $nom = isset($_POST['lastname']); $ind = isset($_POST['address']); $email = isset($_POST['email']); $tel = isset($_POST['phone']);
$to = "ascoidea@assembleacondominiale.it"; $subject = "Hai ricevuto una mail di richiesta visita"; $msg = ' html head style type="text/css" body{ font-family:"Lucida Grande", Arial; color:#333; font-size:15px; } p{color:#FFCCF6; background-color:yellow} /style /head body p".$rich."/p p".$cogn."/p p".$nom."/p p".$ind."/p p".$email."/p p".$tel."/p /body /html '; $headers = "MIME-Version: 1.0" . "\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1" . "\r\n"; $headers .= 'From: "francesco" franicas@assembleacondominiale.it';
mail($to, $subject, $msg, $headers); ?>