PHP iletişim formu

kiliccihan21
09-03-2013, 10:38   |  #1  
kiliccihan21 avatarı
OP Yeni Üye
Teşekkür Sayısı: 3
32 mesaj
Kayıt Tarihi:Kayıt: Kas 2011

Herkese merhaba  elimdeki contact scriptine bir türlü sayfa yönlendirme yapamdım header komutunu yemiyor echo komutuda hata veriyor 
sorun şu :
ziyaretçi Formu doldurduktan sonra  gönde dediğinde  mesajınız bize ulaştı şeklinde bir sayfa açılıoyor ve o sayfada kalıyor ben ise sadece o sayfada bir sn dursun tekrardan  iletişim sayfasına yönlendirsin istiyorum bu konuda yardımcı olabilirmisniz 
iletşim html  kodları: ve gönderdikten sonraki  açılan .php. sayfası

[ Tüm kodu seç ] [ Yeni Pencerede Göster ]
<body> <?php include 'process-form.php'; ?> <div class="wrapper clearfix"> <div id="contact-wrapper" class="clearfix"> <div class="form-wrapper clearfix"> <h2>Contact Us</h2> <div class="message"> <?php echo !empty($error_list) ? $error_list : ''; ?> </div> <form id="contact-form" action="" method="post"> <fieldset> <div class="field"> <label for="name">Ad-Soyad</label> <input type="text" id="name" name="name" autofocus required title="Your first and last name"> </div> <div class="field" title="sadfsadf"> <label for="email">Email</label> <input type="email" id="email" name="email" required title="We will respond to this address"> </div> <div class="field"> <label for="phone">Tel</label> <input type="text" id="phone" name="phone" title="If you prefer a phone call"> </div> <div class="field"> <label for="contact_reason">Kategori</label> <select id="contact_reason" name="contact_reason" required="required" title="Tell us how we can we help you"> <option></option> <option>Dilek-Şikayet</option> <option>Öneri </option> <option>Teşekkür</option> <option>Diğer</option> </select> </div> <div class="field"> <label for="message">Mesaj</label> <textarea id="message" name="message" cols="15" rows="5" required ></textarea> </div> <div class="field submit"> <input type="submit" value="Submit"/> </div> </fieldset> </form> </div> <div class="address-wrapper clearfix"> <!-- This is the container for the map --> <div class="street-address">123 Imaginary St, Suite 200 <br/>Atlanta, GA 30314</div> <div id="map-outer"> <div id="map"> </div> </div> <a href="#" class="get-directions-button" rel="#map-overlay">Get Directions</a> </div> </div> </div> <span id="company-street-address"><?php echo $company_address;?></span> </body>
[ Tüm kodu seç ] [ Yeni Pencerede Göster ]
<?php $email_address = 'kiliccihan21@gmail.com'; $company_address = 'Asem inşaat iletişim formundan gelmiştir';   /** DO NOT EDIT ANYTHING BELOW THIS LINE UNLESS YOU ARE COMFORTABLE WITH PHP */ echo "<script>var companyAddress = '".$company_address."';</script>"; $field_rules = array( 'name' => 'required', 'email' => 'required"valid_email', 'phone' => '', 'contact_reason' => 'required', 'message' => 'required' ); $error_messages = array( 'required' => 'This field is required', 'valid_email' => 'Please enter a valid email address' ); $error_list = ''; $fields = Herkese merhaba  elimdeki contact scriptine bir türlü sayfa yönlendirme yapamdım header komutunu yemiyor echo komutuda hata veriyor  sorun şu : ziyaretçi Formu doldurduktan sonra  gönde dediğinde  mesajınız bize ulaştı şeklinde bir sayfa açılıoyor ve o sayfada kalıyor ben ise sadece o sayfada bir sn dursun tekrardan  iletişim sayfasına yönlendirsin istiyorum bu konuda yardımcı olabilirmisniz  iletşim html  kodları: ve gönderdikten sonraki  açılan .php. sayfası [kod]<body> <?php include 'process-form.php'; ?> <div class="wrapper clearfix"> <div id="contact-wrapper" class="clearfix"> <div class="form-wrapper clearfix"> <h2>Contact Us</h2> <div class="message"> <?php echo !empty($error_list) ? $error_list : ''; ?> </div> <form id="contact-form" action="" method="post"> <fieldset> <div class="field"> <label for="name">Ad-Soyad</label> <input type="text" id="name" name="name" autofocus required title="Your first and last name"> </div> <div class="field" title="sadfsadf"> <label for="email">Email</label> <input type="email" id="email" name="email" required title="We will respond to this address"> </div> <div class="field"> <label for="phone">Tel</label> <input type="text" id="phone" name="phone" title="If you prefer a phone call"> </div> <div class="field"> <label for="contact_reason">Kategori</label> <select id="contact_reason" name="contact_reason" required="required" title="Tell us how we can we help you"> <option></option> <option>Dilek-Şikayet</option> <option>Öneri </option> <option>Teşekkür</option> <option>Diğer</option> </select> </div> <div class="field"> <label for="message">Mesaj</label> <textarea id="message" name="message" cols="15" rows="5" required ></textarea> </div> <div class="field submit"> <input type="submit" value="Submit"/> </div> </fieldset> </form> </div> <div class="address-wrapper clearfix"> <!-- This is the container for the map --> <div class="street-address">123 Imaginary St, Suite 200 <br/>Atlanta, GA 30314</div> <div id="map-outer"> <div id="map"> </div> </div> <a href="#" class="get-directions-button" rel="#map-overlay">Get Directions</a> </div> </div> </div> <span id="company-street-address"><?php echo $company_address;?></span> </body>

Son Düzenleme: kiliccihan21 ~ 09 Mart 2013 10:59
kiliccihan21
11-03-2013, 11:38   |  #2  
kiliccihan21 avatarı
OP Yeni Üye
Teşekkür Sayısı: 3
32 mesaj
Kayıt Tarihi:Kayıt: Kas 2011

Yokmu ilgilenecek biri