how to use name variables in php?
<p>Hello I was working on using passed values to the other php file. However every time I tried use the value of name variable conjunction with ordinary variable below, PHP won't read it ! </p>

<pre><code>global $counterforlist;
 $counterforlist= 0;
while ($row = mysql_fetch_array($result)){
$counterforlist = $counterforlist +1;
echo "&lt;td&gt;&lt;input type= 'text' name = 'jobrequestnumber$counterforlist' value =".$row['jobrequestnumber']."&gt;&lt;/td&gt;"   ; 
echo "&lt;td&gt;&lt;input type= 'text' name = 'requestingcompany$counterforlist' value =".$row['requestingcompany']."&gt;&lt;/td&gt;" ;
echo "&lt;td&gt;&lt;input type= 'text' name = 'dateforService$counterforlist' value =".$row['dateforService']."&gt;&lt;/td&gt;"   ;
echo "&lt;td&gt;&lt;a href=\"update_request.php?jobrequestnumber{$counterforlist}={$row['jobrequestnumber']}&amp;requestingcompany{$counterforlist}={$row['requestingcompany']}&amp;dateforService{$counterforlist}={$row['dateforService']}&amp;{$counterforlist}={$counterforlist}\"&gt;Update&lt;/a&gt;&lt;/td&gt;";
echo "&lt;td&gt;&lt;a href='delete.php?jobrequestnumber=".$row['jobrequestnumber']."'&gt;Delete&lt;/a&gt;&lt;/td&gt;"; //too
echo "&lt;/tr&gt;";
&lt;?php include('update_request.php');?&gt; 
</code></pre>

<hr>

<p>This is the other php file calling those values
in update_request....</p>

<pre><code>&lt;?php 
global $counterforlist;

$jobrequestnumber=$_GET["jobrequestnumber"."$counterforlist"];
$requestingcompany=$_GET["requestingcompany"."$counterforlist"];
$dateforService=$_GET["dateforService"."$counterforlist"]; 

$required_array=array($jobrequestnumber,$requestingcompany,$dateforService);
$errors = array();
$errors = array_merge($errors, check_required_fields($required_array, $_POST));
if (empty($errors)){
// Database submission only proceeds if there were NO errors.
    $query =    "UPDATE jobrequest SET 
                        requestingcompany = '{$requestingcompany}',
                        dateforService = {$dateforService} 
                    WHERE jobrequestnumber ={$jobrequestnumber}";
                    echo $jobrequestnumber;
        $result = mysql_query($query);
</code></pre>

<hr>

<p>error messages </p>

<p><code>Notice: Undefined index: jobrequestnumber in C:\xampp\htdocs\xampp\capstone\update_request.php on line 7</code></p>

<p><code>Notice: Undefined index: requestingcompany in C:\xampp\htdocs\xampp\capstone\update_request.php on line 8</code></p>

<p><code>Notice: Undefined index: dateforService in C:\xampp\htdocs\xampp\capstone\update_request.php on line 9</code></p>

<hr>

<p>If I were to declare variables again, It won't read values from previous php page.
Can you help me figure out what I have been missing :)</p>
