Note that there are some explanatory texts on larger screens.

plurals
  1. POEach Radiobutton for each form or 1 Form for all radiobuttons?
    text
    copied!<p>i have a problem with this homepage.</p> <p>I have to create a Site like this:</p> <pre><code>status create work finished Item1 * o o Item2 o * o Item3 o o * </code></pre> <p>(* = checked, o = unchecked)</p> <p>Now as admin i have the rights to change the status of the each Item.</p> <p>For example when i change the Status from Item1 to "work" it should send a Form and update it in Database.</p> <p>My Problem is know, should i create for each pair of 3 radiobuttons 1 Form?</p> <p>But when i create 1 for all Buttons i will have problems to know which status have changed.<br> Only compare with each Database entry.</p> <p>Before someone ask, i should use radiobuttons. Hope someone could help.</p> <p>Greetz</p> <p>Demonking</p> <p>Edit: Sorry, eomeone have misunderstand me. I meant if i would be faster and better with :</p> <pre><code>&lt;form method="post"&gt; Item 1 &lt;input type="radio" name="item1" value="create" onclick="this.form.submit()"/&gt; &lt;input type="radio" name="item1" value="work" onclick="this.form.submit()"/&gt; &lt;input type="radio" name="item1" value="finished" onclick="this.form.submit()"/&gt; &lt;/form&gt; &lt;form method="post"&gt; Item 2 &lt;input type="radio" name="item2" value="create" onclick="this.form.submit()"/&gt; &lt;input type="radio" name="item2" value="work" onclick="this.form.submit()"/&gt; &lt;input type="radio" name="item2" value="finished" onclick="this.form.submit()"/&gt; &lt;/form&gt; </code></pre> <p>or </p> <pre><code>&lt;form method="post"&gt; Item 1 &lt;input type="radio" name="item1" value="create" onclick="this.form.submit()"/&gt; &lt;input type="radio" name="item1" value="work" onclick="this.form.submit()"/&gt; &lt;input type="radio" name="item1" value="finished" onclick="this.form.submit()"/&gt; Item 2 &lt;input type="radio" name="item2" value="create" onclick="this.form.submit()"/&gt; &lt;input type="radio" name="item2" value="work" onclick="this.form.submit()"/&gt; &lt;input type="radio" name="item2" value="finished" onclick="this.form.submit()"/&gt; &lt;/form&gt; </code></pre> <p>because of Performance with PHP/MySQL</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload