title: Javascript complete form if msgbox answer is YES
body: <p>here is a part of  result from a query...</p>
  
  <pre><code>`Echo '&lt;input type="text" name="amount" style="height:10px;width:15px;font-size:8px;"    value="1"&gt;
  &lt;input type="submit" style="height:10px;font-size:6px;" value="Xx"    onclick="confirmDeletec(\'items.php?del='.$item['Idi'].'&amp;nr=1\')"&gt;'; `
  </code></pre>
  
  <p>here is javascript function</p>
  
  <pre><code>   function confirmDeletec(delUrl3) {
       if (confirm("Are you sure you want to delete that item?")) {
        document.location = delUrl3;
       }
       }
  </code></pre>
  
  <p>When i click the button it asks if i want do delete that item and if i press yes it will delete 1 from the total amount of it...</p>
  
  <p>Now the question is how do i make nr=textbox value(eg: items.php?del=43&amp;nr=5 where textboxvalue is 5...)  and then ask if i want to delete...</p>
  
  <p>i tried to make a form but i can-t use the function confirmdelete...</p>
  
  <p>i mention for each mysql result i have a textbox and a submit button...</p>