
Originariamente inviata da
S0nny
Ho letto anche di questo servizio, che dovrebbe fare al caso, ovvero dovrebbe non aver bisogno di PHP o quant'altro ma non ho capito come funziona:
http://www.buonosconto.it Tu ci capisci?
Chiedo un'altra cosa allora, siccome ho anche un altro dominio su Aruba dove questo problema sembra non esserci, secondo te è possibile fare in modo che quel cldice PHP venga eseguito sull'altro dominio, ma la pagina HTML rimanga su questo che non supporta il PHP?
Grazie mille!!!!
Codice HTML
$(document).ready(function() {
// SUCCESS AJAX CALL, replace "success: false," by: success : function() { callSuccessFunction() },
$("#form1").validationEngine({
ajaxSubmit: true,
ajaxSubmitFile: "../contact-form/ajaxSubmit.php",
ajaxSubmitMessage: "Grazie!! Sarai ricontattato al più presto!",
success : false,
failure : function() {}
})
});
Codice PHP
$name = $_POST['name']; // contain name of person
$email = $_POST['email']; // Email address of sender
//$web = $_POST['web'];
// Your website URL\n\nWebsite :{$web}
$body = $_POST['text']; // Your message
$receiver = "ariel.63@libero.it" ; // hardcorde your email address here - This is the email address that all your feedbacks will be sent to
if (!empty($name) & !empty($email) && !empty($body)) {
$body = "Name:{$name}\n\nComments:{$body}";
$send = mail($receiver, 'Contact Form Submission', $body, "From: {$email}");
if ($send) {
echo 'true'; //if everything is ok,always return true , else ajax submission won't work