PHP Form Help With Varibale Vlaue
Posted: Sun Sep 13, 2009 12:41 pm
Hi
I am trying to make a Form which can pass multiple inputs using varibale DisEarn[$x] to add2.php file where that input can be processed. However I am not receiving the value.
Here is the lines of code for the Form
And here is the line of code for add2.php
I tried $_POST, $_GET, $_REQUEST, nothing work. Any help please?
Thanks & Regards,
I am trying to make a Form which can pass multiple inputs using varibale DisEarn[$x] to add2.php file where that input can be processed. However I am not receiving the value.
Here is the lines of code for the Form
Code: Select all
for($x=0; $x<2; $x++)
{
echo "<td align='center' bgcolor='#009933'><font face='Tahoma' size='2' color='#FFFFFF'><b>";
echo "<input type = 'text' name='DisEarn[$x]' Size='10' />";
echo"</font></b></td>";
}
echo "</tr><tr>";
echo"<input type='submit' value='Submit' name='B1'></form>";
And here is the line of code for add2.php
Code: Select all
for($x=0; $x<2; $x++)
{
$DisEarn1 = $_GET['DisEarn[$x]'];
echo "Here".$DisEarn1."<br>";
}
Thanks & Regards,