passing value of index number to different php file
<p>i am a php beginner and have a question for you please.</p>

<p>i have a text file with list of first and last names like this:</p>

<pre><code>john,smith
sam,lewis
david,davidson
mike,anderson
</code></pre>

<p>in my sort.php file, it sorts that name list by first name in ascending order with index number, which will display like this:</p>

<pre><code>1. david,davidson
2. john,smith
3. mike,anderson
4. sam,lewis
</code></pre>

<p>also, in that sort.php file, there's a form for input type=text where you can type index number and a button to delete that index number entered in that text field:</p>

<pre><code>&lt;form action="deletename.php" method="post"&gt;
  &lt;table&gt;
    &lt;tr valign="top"&gt; 
      &lt;td&gt;Delete: &lt;input type="text" size="2" name="indexnumber" /&gt;
      &lt;/td&gt;
      &lt;td&gt; 
        &lt;div align="left"&gt; 
          &lt;input type="submit" name="delete" value="Delete" /&gt;
        &lt;/div&gt;
      &lt;/td&gt;
    &lt;/tr&gt;
  &lt;/table&gt;
&lt;/form&gt;
</code></pre>

<p>now the question...is there anything i can do in that form to send the value of that index number i entered in the text field?  in other word...if i enter 3, what can i do to that form to send the value "mike,anderson" to deletename.php?</p>

<p>thanks in advance.</p>
