• 18-01-2021, 19:52:18
    #1
    Merhabalar bir sorum olucak benim.
    Bir tane formum var bu formda herhangi bir button yok buton ise form dışında farklı bir yerde ben bu butona basıldığında bir php kod çalışıyor bu formda ki verileri butona basıldığında nasıl gönderebilirim.
  • 18-01-2021, 19:57:12
    #2
    curl ile
  • 18-01-2021, 19:57:32
    #3
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Hocam açıklamanızdan bir şey anlamadım sanırım anlatmaya çalıştığınız şey buton olmadan formu post etmek istiyorsun ?

    <script>   //trigger dialog $('#submitIter').click(function(){    $("#dialog-submit").dialog("open");                return false
    });
    $("#dialog-submit").dialog({                autoOpen: false,    resizable: false,    height: 200,    width: 200,    modal: true,    buttons: {        "Proceed": function(){            //submit after user clicks proceed cannot seem to work            $('#form_for_submit').submit();            $(this).dialog("close");         }    } });   </script>
      <form id="form_for_submit" action="{{ request.path }}" method="post" enctype="multipart/form-data">
          <input type="image" src="images/submit.png" id="submitIter">
        </form>
  • 18-01-2021, 20:25:40
    #4
    Merhaba, Formu göndermek için butonunuzun formun içerisinde olması gerekmiyor. Butonun click olayına ajax ile istediğiniz veriyi php ye post edebilirsiniz. Form a bir id verip serialize yöntemiyle formdaki tüm alanları php dosyasına post edebilirsiniz.