Yunix Posted December 4, 2023 Share Posted December 4, 2023 First of all, I wish everyone good form. Thank you very much in advance for your help. My problem is, I am preparing an application form, but I couldn't get it to work. Where and what kind of mistake am I making? Can you help me? These are my codes. <?php $hata = false; $gonder = false; if( isset($_POST["islem"]) && $_POST["islem"]=="gonder" ) { if( !empty($_POST["adsoyad"]) && !empty($_POST["email"]) && !empty($_POST["telefon"]) && !empty($_POST["konu"]) && !empty($_POST["mesaj"]) && !empty($_POST["eht"]) && !empty($_POST["arac"]) && !empty($_POST["tam"]) ) { include_once('phpmailer/class.phpmailer.php'); $mail = new PHPMailer(); $mail->isSMTP(); $mail->SMTPAuth = true; $mail->Host = 'mail.deneme.com'; $mail->Username = 'admin@deneme.com'; $mail->Password = ''; $mail->Port = 587; $mail->setFrom('admin@deneme.com', 'deneme'); $mail->addAddress('admin@deneme.com', 'deneme'); //HTML Aktif $mail->isHTML(true); $mail->CharSet ="utf-8"; //Mail Başlığı $mail->Subject = 'İletişim Formu Mesajı'; //Mail İçeriği $mail->Body = '<p><strong>Gönderen:</strong> ' . $_POST["adsoyad"] . ' - ' . $_POST["email"] . '</p>'. '<p><strong>Konu:</strong> ' . $_POST["telefon"] . '</p>'. '<p><strong>Konu:</strong> ' . $_POST["konu"] . '</p>'. '<p><strong>Mesaj:</strong> ' . $_POST["mesaj"] . '</p>'. '<p><strong>Ehliyet Seçimi:</strong> ' . $_POST["eht"] . '</p>'. '<p><strong>Araç Seçimi:</strong> ' . $_POST["arac"] . '</p>'. '<p><strong>Çalışma Turu:</strong> ' . $_POST["tam"] . '</p>'; //Gönder if ( $mail->send() ) { $gonder = true; } else { $hata = true; $hata_mesaj = "Mesaj gönderilirken bir hata oluştu: ".$mail->ErrorInfo; } } else { $hata = true; $hata_mesaj = "Lütfen tüm alanları doldurun."; } } ?> <------------------------------------------------------------------------------------> <form class="loftForm" id="contactForm" method="POST" action=""> <div class="row gp-3"> <div class="col-md-12"> <label class="ns-label">Adınız Soyadınız</label> <input class="ns-control mb-4" type="text" name="adsoyad" id="adsoyad" placeholder="Adınız Soyadınız" required> </div> <div class="col-md-6"> <label class="ns-label">Telefon</label> <input class="ns-control mb-4" type="telefon" name="telefon" id="telefon" placeholder="Telefon" required> </div> <div class="col-md-6"> <label class="ns-label">E-Posta</label> <input class="ns-control mb-4" type="email" name="email" id="email" placeholder="email" required> </div> <div class="col-md-12"> <label class="ns-label">Kaç yıllık tecrübeye sahipsiniz?</label> <input type="text" class="ns-control mb-4" name="kyts" id="kyts" placeholder="Kaç yıllık tecrübeye sahipsiniz?" required/> </div> <div class="col-md-12"> <label class="ns-label">Ehliyet Seçimi</label><br> <input type="checkbox" name="eht[]" value="A1"/><span style="color: #fdb43f;"> A1</span><br/> <input type="checkbox" name="eht[]" value="A2"/><span style="color: #fdb43f;"> A2</span><br/> <input type="checkbox" name="eht[]" value="AB"/><span style="color: #fdb43f;"> A,B</span><br/> <input type="checkbox" name="eht[]" value="C"/><span style="color: #fdb43f;"> C</span><br/> <input type="checkbox" name="eht[]" value="CE"/><span style="color: #fdb43f;"> CE</span><br/> <input type="checkbox" name="eht[]" value="D"/><span style="color: #fdb43f;"> D</span><br/> <input type="checkbox" name="eht[]" value="DE"/><span style="color: #fdb43f;"> DE</span><br/> </div> <div class="col-md-12"><br> <label class="ns-label">Sahip olduğunuz araç çeşidi</label><br> <input type="checkbox" name="arac[]" value="motor"/><span style="color: #fdb43f;"> Motor</span><br/> <input type="checkbox" name="arac[]" value="minivan"/><span style="color: #fdb43f;"> Minivan</span><br/> <input type="checkbox" name="arac[]" value="kamyon"/><span style="color: #fdb43f;"> Kamyon</span><br/> <input type="checkbox" name="arac[]" value="kamyonet"/><span style="color: #fdb43f;"> Kamyonet</span><br/> <input type="checkbox" name="arac[]" value="frigolu"/><span style="color: #fdb43f;"> Frigolu Araç</span><br/> </div> <div class="col-md-12"><br> <label class="ns-label">Tercih ettiğiniz çalışma şekli</label><br> <input type="checkbox" name="tam[]" value="tamzamanli"/><span style="color: #fdb43f;"> Tam Zamanlı</span><br/> <input type="checkbox" name="tam[]" value="yarizamanli"/><span style="color: #fdb43f;"> Yarı Zamanlı</span><br/> </div> <div class="col-md-12"><br> <button class="btn comSend anibut mt-2" name="islem" value="gonder" required> Gönder <span><i class="fas fa-paper-plane"></i></span> </button> </div> </div> </form> <-------------------------------------------------------------------------------------------> Quote Link to comment https://forums.phpfreaks.com/topic/317505-need-php-help-error-for-sumoweb-tools/ Share on other sites More sharing options...
requinix Posted December 4, 2023 Share Posted December 4, 2023 4 minutes ago, Yunix said: but I couldn't get it to work Get what to work? What are you trying to do, what did you expect to see happen, and what actually happened instead? 1 Quote Link to comment https://forums.phpfreaks.com/topic/317505-need-php-help-error-for-sumoweb-tools/#findComment-1613288 Share on other sites More sharing options...
Yunix Posted December 4, 2023 Author Share Posted December 4, 2023 (edited) 2 dakika önce requinix şunları söyledi: Ne işe yarayacak ? Ne çalışıyorsunuz, ne yapılmasını bekliyorsunuz ve bunun yerine ne oldu? Lütfen alanın tamamını doldurun. Bir uyarı aldım I use it as a contact form. I changed it to the application form, but I can't get any results. Edited December 4, 2023 by Yunix Quote Link to comment https://forums.phpfreaks.com/topic/317505-need-php-help-error-for-sumoweb-tools/#findComment-1613289 Share on other sites More sharing options...
requinix Posted December 5, 2023 Share Posted December 5, 2023 if( !empty($_POST["adsoyad"]) && !empty($_POST["email"]) && !empty($_POST["telefon"]) && !empty($_POST["konu"]) && !empty($_POST["mesaj"]) && !empty($_POST["eht"]) && !empty($_POST["arac"]) && !empty($_POST["tam"]) ) { Your form does not have a konu or mesaj. The form does have a kyts which you are not using. 1 Quote Link to comment https://forums.phpfreaks.com/topic/317505-need-php-help-error-for-sumoweb-tools/#findComment-1613304 Share on other sites More sharing options...
Yunix Posted December 6, 2023 Author Share Posted December 6, 2023 <?php $hata = false; $gonder = false; if (isset($_POST["islem"]) && $_POST["islem"] == "gonder") { if ( !empty($_POST["adsoyad"]) && !empty($_POST["email"]) && !empty($_POST["telefon"]) && !empty($_POST["kyts"]) && !empty($_POST["eht"]) && !empty($_POST["arac"]) && !empty($_POST["tam"]) ) { include_once "phpmailer/class.phpmailer.php"; $mail = new PHPMailer(); $mail->isSMTP(); $mail->SMTPAuth = true; $mail->Host = "mail.sutesisatacil.com"; $mail->Username = "admin@sutesisatacil.com"; $mail->Password = "Sb4q5NBR"; $mail->Port = 587; $mail->setFrom("admin@sutesisatacil.com", "deneme"); $mail->addAddress("admin@sutesisatacil.com", "deneme"); //HTML Aktif $mail->isHTML(true); $mail->CharSet = "utf-8"; //Mail Başlığı $mail->Subject = "İletişim Formu Mesajı"; //Mail İçeriği $mail->Body = "<p><strong>Gönderen:</strong> " . $_POST["adsoyad"] . " - " . $_POST["email"] . "</p>" . "<p><strong>Telefon:</strong> " . $_POST["telefon"] . "</p>" . "<p><strong>Tecrübe:</strong> " . $_POST["kyts"] . "</p>" . "<p><strong>Ehliyet Seçimi:</strong> " . $_POST["eht"] . "</p>" . "<p><strong>Araç Seçimi:</strong> " . $_POST["arac"] . "</p>" . "<p><strong>Çalışma Turu:</strong> " . $_POST["tam"] . "</p>"; //Gönder if ($mail->send()) { $gonder = true; } else { $hata = true; $hata_mesaj = "Mesaj gönderilirken bir hata oluştu: " . $mail->ErrorInfo; } } else { $hata = true; $hata_mesaj = "Lütfen tüm alanları doldurun."; } } ?> <!doctype html> <html lang="tr"> <head> <meta charset="utf-8"> <title>PHP İletişim Formu</title> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>EDS Lojistik Soğuk Hava Zinciri</title> <meta content="EDS Lojistik Soğuk Hava Zinciri" name="title"> <meta property="og:title" content="EDS Lojistik Soğuk Hava Zinciri"> <meta property="og:description" content="Sektörün en yeni ve en güvenilir Soğuk Hava Zinciri firması ile tanışın. Hesaplı ve kaliteli hizmetin tek adresi EDS Lojistik"> <meta content="Sektörün en yeni ve en güvenilir EDS Lojistik Soğuk Hava Zinciri firması ile tanışın. Hesaplı ve kaliteli hizmetin tek adresi EDS Lojistik" name="description"> <link href="images/icons.png" rel="icon"> <link href="images/icons.png" rel="apple-touch-icon"> <meta content="takipçi,beğeni,izlenme" name="keywords"> <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous"> <link href="css/variable.css" rel="stylesheet"> <link href="css/style.min.css" rel="stylesheet"> <link href="css/anisplide.min.css" rel="stylesheet"> <script src="js/jquery-3.6.0.min.js" crossorigin="anonymous"></script> <script src="https://kit.fontawesome.com/d3897fd5a7.js" crossorigin="anonymous"></script> <script type="text/javascript">var defaultMode = 'moon';</script> <meta property="og:url" content="https://edslojistik.com.tr/" /> <link rel="canonical" href="https://edslojistik.com.tr/" /> </head> <body class="dark"> <script src="js/cookie.js"></script> <header> <nav class="navbar nav-head "> <div class="container"> <div class="nav-content"> <a class="logo" href="index.html"> <img class="light lazy" src="images/loader.png" data-src="images/logo.png" alt="Eds Lojistik" title="EdsLojistik"> <img class="dark lazy" src="images/loader.png" data-src="images/logo.png" alt="Eds Lojistik" title="EdsLojistik"></a> <div class="NavListArea"> <ul class="NavList"> <li class="navitem"><a class="navlink" href="index.html">EDS</a> </li> <li><a class="navlink" href="referanslarimiz.html">Referanslarımız</a> </li> <li><a class="drop-navlink" href="hakkimizda.html">Hakkımızda</a></li> <li><a class="drop-navlink" href="sss.html">SSS</a></li> </ul> <div class="NavActions"> <div class="supportbtn"> <a href="iletisim.php" class="contact-btn anibut navlink"> <i class="fas fa-paper-plane"></i> İletişim</a></div> <div class="otbuts"> <i class="fa-sharp fa-light fa-arrow-right"></i> <div class="supportbtn"> <a href="dagitim-sorumlusu-ol.php" class="contact-btn anibut navlink"> <i class="fa-solid fa-car"></i> Dağıtım Sorumlusu</a></div> </div> </div> </div> <div class="navTogbtn"> <span class="item1"></span> <span class="item2"></span> <span class="item3"></span> <span class="item4"></span> </div> </div> </div> </nav> </header> <div class="path1"> <svg xmlns="http://www.w3.org/2000/svg" width="1263.564" height="675.739" viewBox="0 0 1263.564 675.739"> <path class="allpath" id="path1" d="M656.436,0l217.29,488.637s35.49,74.887,118.3,93.1S1920,675.59,1920,675.59V-.149Z" transform="translate(-656.436 0.149)"/> </svg> </div> <main> <section id="intall" class="wow fadeInDown"> <div class="container"> <div class="intall reserve"> <img class="introBG lazy" src="https://medyahizmetlerim.com/themes/vision/img/loader.png" data-src="images/iletisim-slider.svg" alt="İletişim" /> <div class="conts"> <div class="icobox"><i class="fas fa-envelope"></i></div> <div class="detabox"> <h1>İletişim</h1> <p> Soru ve sorunlarınız için 7/24 formu doldurabilir ve bizimle kolayca iletişim kurabilirsiniz. Cevapların sorunsuz iletilmesi için aktif bir mail adresi yazmalısınız. </p> </div> </div> </div> </div> </section> <section class="contactPage wow fadeInUp"> <div class="container"> <div class="row"> <div class="col-md-8"> <div class="contactArea mb-5"> <?php if ($gonder) { ?> <div class="alert alert-success">Mesajınız başarıyla gönderildi.</div> <?php } ?> <?php if ($hata) { ?> <div class="alert alert-warning"><?php echo $hata_mesaj; ?></div> <?php } ?> <form class="loftForm" id="contactForm" method="POST" action=""> <div class="row gp-3"> <div class="col-md-12"> <label class="ns-label">Adınız Soyadınız</label> <input class="ns-control mb-4" type="text" name="adsoyad" id="adsoyad" placeholder="Adınız Soyadınız" required> </div> <div class="col-md-6"> <label class="ns-label">Telefon</label> <input class="ns-control mb-4" type="telefon" name="telefon" id="telefon" placeholder="Telefon" required> </div> <div class="col-md-6"> <label class="ns-label">E-Posta</label> <input class="ns-control mb-4" type="email" name="email" id="email" placeholder="email" required> </div> <div class="col-md-12"> <label class="ns-label">Kaç yıllık tecrübeye sahipsiniz?</label> <input type="text" class="ns-control mb-4" name="kyts" id="kyts" placeholder="Kaç yıllık tecrübeye sahipsiniz?" required /> </div> <div class="col-md-12"> <label class="ns-label">Ehliyet Seçimi</label> <br> <input type="checkbox" name="eht[]" value="A1" /> <span style="color: #fdb43f;"> A1</span> <br /> <input type="checkbox" name="eht[]" value="A2" /> <span style="color: #fdb43f;"> A2</span> <br /> <input type="checkbox" name="eht[]" value="AB" /> <span style="color: #fdb43f;"> A,B</span> <br /> <input type="checkbox" name="eht[]" value="C" /> <span style="color: #fdb43f;"> C</span> <br /> <input type="checkbox" name="eht[]" value="CE" /> <span style="color: #fdb43f;"> CE</span> <br /> <input type="checkbox" name="eht[]" value="D" /> <span style="color: #fdb43f;"> D</span> <br /> <input type="checkbox" name="eht[]" value="DE" /> <span style="color: #fdb43f;"> DE</span> <br /> </div> <div class="col-md-12"> <br> <label class="ns-label">Sahip olduğunuz araç çeşidi</label> <br> <input type="checkbox" name="arac[]" value="motor" /> <span style="color: #fdb43f;"> Motor</span> <br /> <input type="checkbox" name="arac[]" value="minivan" /> <span style="color: #fdb43f;"> Minivan</span> <br /> <input type="checkbox" name="arac[]" value="kamyon" /> <span style="color: #fdb43f;"> Kamyon</span> <br /> <input type="checkbox" name="arac[]" value="kamyonet" /> <span style="color: #fdb43f;"> Kamyonet</span> <br /> <input type="checkbox" name="arac[]" value="frigolu" /> <span style="color: #fdb43f;"> Frigolu Araç</span> <br /> </div> <div class="col-md-12"> <br> <label class="ns-label">Tercih ettiğiniz çalışma şekli</label> <br> <input type="checkbox" name="tam[]" value="tamzamanli" /> <span style="color: #fdb43f;"> Tam Zamanlı</span> <br /> <input type="checkbox" name="tam[]" value="yarizamanli" /> <span style="color: #fdb43f;"> Yarı Zamanlı</span> <br /> </div> <div class="col-md-12"> <br> <button class="btn comSend anibut mt-2" name="islem" value="gonder" required> Gönder <span> <i class="fas fa-paper-plane"></i> </span> </button> </div> </div> </form> </div> </div> <div class="col-md-4"> <div class="sidebar"> <div class="SideContactBox mb-5"> <div class="title-heading sitleico"> <span>Talepleriniz için</span> <h2>İletişim Bilgilerimiz</h2> <i class="fas fa-paper-plane"></i> </div> <div class="SideContBoxArea"> <h3>EDS Lojistik</h3> <ul> <li> <i class="fas fa-envelope"></i> info@edslojistik.com.tr</li> <li> <i class="fas fa-phone"></i> 0533 450 77 76 </li> <li> <i class="fas fa-map"></i> Zafer mah. Necip fazıl kısakurek Cad. No:5 <br>İstanbul / Bahçelievler</li> </ul> </div> </div> <div class="SideSSS"> <div class="title-heading sitleico"> <span>Merak Edilen</span> <h2>Sıkça Sorulan Sorular</h2> <i class=""></i> </div> <div class="faqwell"> <div class="item"> <div class="fs-head"> <span>Yeni Soru Başlığı</span> <div class="plusminus"> <span class="plus"> <i class="fas fa-plus"></i> </span> <span class="minus"> <i class="fas fa-minus"></i> </span> </div> </div> <div class="fs-content"><p>Yeni soru cevap alanı</p></div> </div> <div class="item"> <div class="fs-head"> <span>Yeni Soru Başlığı</span> <div class="plusminus"> <span class="plus"> <i class="fas fa-plus"></i> </span> <span class="minus"> <i class="fas fa-minus"></i> </span> </div> </div> <div class="fs-content"><p>Yeni soru cevap alanı</p></div> </div> <div class="item"> <div class="fs-head"> <span>Yeni Soru Başlığı</span> <div class="plusminus"> <span class="plus"> <i class="fas fa-plus"></i> </span> <span class="minus"> <i class="fas fa-minus"></i> </span> </div> </div> <div class="fs-content"><p>Yeni soru cevap alanı</p></div> </div> </div> </div> </div> </div> </div> </div> </section> <section id="support" class="wow fadeInUp"> <div class="container"> <div class="support-bottom"> <div class="text"> SORU VE SORUNLAR İÇİN <span>BİZE ULAŞABİLİRSİNİZ!</span> </div> <div class="action"> <a class="wp anibut" target="_blank" href="https://wa.me/+905334507776?text=Size+internet+siteniz+%C3%BCzerinden+ula%C5%9F%C4%B1yorum." rel="noreferrer"> <span>Whatsapp</span> <i class="fab fa-whatsapp"></i> </a> <a class="fcont anibut" href="https://edslojistik.com.tr"> <span>İletişime Geç!</span> <i class="fas fa-paper-plane"></i> </a> </div> </div> </div> </section> </main> <footer> <div class="footer"> <div class="container"> <div class="foot-flex"> <div class="start logo"> <img class="light lazy" src="images/loader.png" data-src="images/logo.png" alt="EDS Lojistik" title="EDS Lojistik" width="150" height="50"> <img class="dark lazy" src="images/loader.png" data-src="images/logo.png" alt="EDS Lojistik" title="EDS Lojistik" width="150" height="50"> <p>EDS Lojistik Soğuk Zincir Taşımacılığı</p> <div class="social-action"> <a href="https://instagram.com/kullaniciadi/" target="_blank"> <i class="fab fa-instagram"></i> </a> <a href="https://youtube.com/kanallinki/" target="_blank"> <i class="fab fa-youtube"></i> </a> <a href="https://twitter.com/kullaniciadi/" target="_blank"> <i class="fab fa-twitter"></i> </a> <a href="https://youtube.com/sayfakullaniciadi/" target="_blank"> <i class="fab fa-facebook"></i> </a> </div> </div> <div class="fdef"> <div class="title"> Hızlı Menü </div> <ul> <li> <a href="index.html">EDS</a> </li> <li> <a href="hakkimizda.html">Hakkımızda</a> </li> <li> <a href="iletisim.php">İletişim</a> </li> <li> <a href="sss.html">SSS</a> </li> </ul> </div> <div class="fdef"> <div class="title"> İletişim Bilgileri </div> <ul> <li> <i class="fas fa-envelope"></i> info@edslojistik.com.tr</li> <li> <i class="fas fa-phone"></i> 0533 450 77 76 </li> <li> <i class="fas fa-map"></i> Zafer mah. Necip fazıl kısakurek Cad. No:5 <br>İstanbul / Bahçelievler</li> </ul> </div> </div> </div> </div> </footer> <!-- JavaScript --> <script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script> <script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script> <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script> <script src="js/variable.js?loftVersion=1699997186"></script> <script src="js/main.js"></script> <script type="text/javascript"> var packJson = [320,359,48,387]; </script> <script src="js/bootstrap.bundle.js" crossorigin="anonymous"></script> <script src="js/bootstrap.min.js" crossorigin="anonymous"></script> <script src="js/splide.min.js" crossorigin="anonymous"></script> <script src="js/wow.js" crossorigin="anonymous"></script> <script> new WOW().init(); </script> <div id="demo"></div> </body> </html> I made an edit. This Time Error The one sent is incorrect. Print Results. Gönderen: Yunus ÇAğlayan - by-yunix@hotmail.com Telefon: 05433151784 Tecrübe: 5 Ehliyet Seçimi: Array Araç Seçimi: Array Çalışma Turu: Array eht, arac, tam Why does the result appear as array? Quote Link to comment https://forums.phpfreaks.com/topic/317505-need-php-help-error-for-sumoweb-tools/#findComment-1613348 Share on other sites More sharing options...
Psycho Posted December 6, 2023 Share Posted December 6, 2023 You are defining those input fields as arrays. Note the "[]" at the end of the field name. <input type="checkbox" name="tam[]" value="tamzamanli" /> <span style="color: #fdb43f;"> Tam Zamanlı</span> <br /> <input type="checkbox" name="tam[]" value="yarizamanli" /> <span style="color: #fdb43f;"> Yarı Zamanlı</span> Is your intent to allow the user to select multiple options for the "tam" value? If so, this is a valid approach - but the results ill be passed as an array because of the "[]" in the field names. Checkboxes are unique in that if you don't check them - then there is no value passed when the form is submitted. Using the above logic, the first value checked would be passed as "$_POST['tam'][0]", the second one as "$_POST['tam'][1]", etc. So, you would need to write your logic to process that data accordingly. One way you could handle this is by imploding the array into a single string. But, not knowing all the ways you may need to use this data, I can't say if that is the best approach. Also, in your validation part of the script, you can check that $_POST['tam'] isset() and also check that its length is greater than 0: if(count($_POST['tam'])>) then . . . $tamValues = implode(', ', $_POST['tam']); echo "Selected tam values: " . $tamValues; //Assuming "tamzamanli" and "yarizamanli" were checked the output would be: // Selected tam values: tamzamanli, yarizamanli However, if your intent is that the user should only select one of the values for "tam" (and the similar inputs), then you should use a radio group instead. Using a radio group, each element will have the same name and only one record can be selected. You don't need to format the name as an array (but could be for other uses cases not related to your purpose). <input type="radio" name="tam" value="tamzamanli" /> <span style="color: #fdb43f;"> Tam Zamanlı</span> <br /> <input type="radio" name="tam" value="yarizamanli" /> <span style="color: #fdb43f;"> Yarı Zamanlı</span> Quote Link to comment https://forums.phpfreaks.com/topic/317505-need-php-help-error-for-sumoweb-tools/#findComment-1613362 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.