PHP Form (post) bir tabel in girişi Tekrarı

2 Cevap

I have a form (with post method) that takes the following input:
- a certain name
- a number
- 3 checkboxes

All this input gets generated and calculated in a table.(html code within the php)
Everything gets properly calculated and displayed in a table.

So my question:
How do i make it possible after giving all those input to give in more input?
Meaning i have made a hyperlink that goes back to the form itself (where i can give the input).
So i can give in new data, and after submiting that again the table now contains 2 rows of values insteed of just 1.

Ben bu ihtiyacı tam olarak ne gerçekten emin değil. (I 2 php dosyaları, form için bir tane, sonra başka bir tablo görüntülenir alır birini (ve tüm hesaplamalar yerleştirilir) kullanın.

Saygılar.

2 Cevap

How do i make it possible after giving all those input to give in more input? Meaning i have made a hyperlink that goes back to the form itself (where i can give the input). So i can give in new data, and after submiting that again the table now contains 2 rows of values insteed of just 1.

Form böyle teslim edildikten sonra yeni metin girişi koyabilirsiniz:

<?php
if (isset($_POST['submit']))
{
?>
  <!-- Your initial/previous form -->
  <form>
    <!-- Your initial/previous form iputs -->

    <!-- now your news input text -->
    <input type="text" name="whatever" />
  </form>
<?php
}
?>

Ben sağ soru var ise, o zaman ben yerine INSERT UPDATE sorgusu yerleştirmek gerekiyor umut