Salve, ho un sito in flash e xml, ed avrei un problema con il modulo di contatto...
..praticamente ho già i file, contatti.xml e contatti.php, ma ho un problema a richiamare contatti.php...
Potreste darmi una mano a capire se e dove manca qualche stringa di codice per richiamarlo, e per far funzionare tutto correttamente. Grazie
PHP
XMLCodice PHP:<?php $contact_name = $_POST['name']; $contact_email = $_POST['email']; $contact_subject = $_POST['subject']; $contact_message = $_POST['message']; if( $contact_name == true ) { $sender = $contact_email; $receiver = "yourEmail@YourDomain.com"; $client_ip = $_SERVER['REMOTE_ADDR']; $email_body = "Name: $contact_name \nEmail: $sender \nSubject: $contact_subject \nMessage: $contact_message \nIP: $client_ip "; $extra = "From: $sender\r\n" . "Reply-To: $sender \r\n" . "X-Mailer: PHP/" . phpversion(); if( mail( $receiver, "Flash Contact Form - $contact_subject", $email_body, $extra ) ) { echo "status=success"; } else { echo "status=fail"; } } ?>
codice:<?xml version="1.0" encoding="utf-8"?> <contacts> <settings yourEmailAddress = "agosweb@gmail.com" bgColor = "FFFFFF" bgAlpha = ".5" txtFieldsBgColor = "1B1B1B" txtFieldsBgAlpha = ".2" textColor = "1B1B1B" sendButtonBgColor = "B7B7B6" sendButtonBgAlpha = "0" sendButtonBgOverColor = "ffffff" sendButtonBgOverAlpha = ".8" nameLabel = "NOME *" emailLabel = "EMAIL *" subjectLabel = "TELEFONO *" messageLabel = "MESSAGGIO *" sendLabel = "INVIA" missingFieldsErrorTxt = "È necessario riempire tutti i campi di testo." emailAddressErrorTxt = "Si prega di inserire un indirizzo email valido." emailSendingTxt = "Invio, attendere prego ..." messageSentTxt = "Grazie, il tuo messaggio è stato inviato." messageNotSentTxt = "Siamo spiacenti, il messaggio non può essere inviato." imagePath = "images/contactForm/franchising.jpg" /> <textBox><![CDATA[<font size="24">CONTATTI]]></textBox> </contacts>

Rispondi quotando