Note that there are some explanatory texts on larger screens.

plurals
  1. POphp comparison of values in two radio buttons
    primarykey
    data
    text
    <p>this is one radio button set </p> <pre><code>&lt;input type="radio" name="image" id="100" value="a"/&gt; &lt;input type="radio" name="image" id="100" value="b"/&gt; &lt;input type="radio" name="image" id="100" value="c"/&gt; &lt;input type="radio" name="image" id="200" value="d"/&gt; &lt;input type="radio" name="image" id="200" value="e"/&gt; &lt;input type="radio" name="image" id="300" value="f"/&gt; &lt;input type="radio" name="image" id="300" value="g"/&gt; &lt;input type="radio" name="image" id="400" value="h"/&gt; </code></pre> <p>and so on...</p> <p>and this is another radio button set</p> <pre><code>&lt;input type="radio" name="number" value="100"/&gt; &lt;input type="radio" name="number" value="200"/&gt;200 &lt;input type="radio" name="number" value="300"/&gt;300 &lt;input type="radio" name="number" value="400"/&gt;400 &lt;input type="radio" name="number" value="500"/&gt;500 &lt;input type="radio" name="number" value="600"/&gt;600 </code></pre> <p>my question is how can i compare value of one with value="100" to other with id="100" in php</p> <p>there is a comparison i want to make but for the field with id = 100 i have values as abcd.. so i cant assign it value = 100 cuz i m saving it in database means.. there are other fields with id=100 but their values shall be diffrent otherwise i m not able to identify them after they are send to databse still i have to do comparison of both.. and that too serverside so what are my options?</p> <p>more detailed explanation.... there are two sets of radio buttons.. in one set there are values.. and in other sets there are images related to those values.. when user clicks set of value... and user click on set of images so php shall match that image to the value.. if user clicked on 100 as value and later he clicks on an image under the id 200 database shall not allow it to enter and gave him some error</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

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