mam problem z formularzem, otóż zmienna firma nie jest dostarczana na maila, sam napis Frima wyświetla się w nagłówku.
Byłbym wdzięczny

kod wygląda tak:
kontakt.html:
<form action="form-kontakt/contact.php" method="post" id="cForm"> <div class="pole_kontaktu"> <div class="pole_kontaktu"> <div class="pole_kontaktu"> <div class="pole_kontaktu"> <select id="posRegard" class="pole_kontaktu_input" type="text" = name="posRegard"> </select> </div> <div class="pole_kontaktu"> <label> <div class="pole_kontaktu"> <p class="pole_kontaktu_w"> <input class="wyslij" type="submit" name="sendContactEmail" id="sendContactEmail" value=" " /> </label> </form>
contact.php:
include "config.php"; function cleanPosUrl ($str) { } { $to = $yourEmail; $subject = $yourSubject.': '.$_POST['posRegard']; $subject .= $yourSubject.': '.$_POST['firma']; $message = cleanPosUrl($_POST['posText']); $headers = "From: ".cleanPosUrl($_POST['posName'])." <".$_POST['posEmail'].">\r\n"; $headers .= 'To: '.$yourName.' <'.$yourEmail.'>'."\r\n"; if ( @$mailit ) { } else { } }
xmlHttpRequest:
include "config.php"; header('Content-Type: text/xml'); echo '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'; echo '<resultset>'; function cleanPosUrl ($str) { $nStr = $str; $nStr = str_replace("**am**","&",$nStr); $nStr = str_replace("**pl**","+",$nStr); $nStr = str_replace("**eq**","=",$nStr); return stripslashes($nStr); } if ( $_GET['contact'] == true && $_GET['xml'] == true && isset($_POST['posText']) ) { $to = $yourName; $subject = 'Mail ze strony: '.cleanPosUrl($_POST['posRegard']); $subject .= 'Firma '.cleanPosUrl($_POST['firma']); $message = cleanPosUrl($_POST['posText']); $headers = "From: ".cleanPosUrl($_POST['posName'])." <".cleanPosUrl($_POST['posEmail']).">\r\n"; $headers .= 'To: '.$yourName.' <'.$yourEmail.'>'."\r\n"; $mailit = mail($to,$subject,$message,$headers); if ( @$mailit ) { $posStatus = 'OK'; $posConfirmation = 'Ok! Twój Email został wysłany.'; } else { $posStatus = 'NOTOK'; $posConfirmation = 'Twój Email nie mógł zostać wysłany. Spróbuj później.'; } if ( $_POST['selfCC'] == 'send' ) { $ccEmail = cleanPosUrl($_POST['posEmail']); @mail($ccEmail,$subject,$message,"From: Yourself <".$ccEmail.">\r\nTo: Yourself"); } echo ' <status>'.$posStatus.'</status> <confirmation>'.$posConfirmation.'</confirmation> <regarding>'.cleanPosUrl($_POST['posRegard']).'</regarding> '; } echo' </resultset>';