so my while loop looks like this
while ($array != 5)
{
echo $value[$array];
$array = $array + 1
}
now i have a form i need to submit and send to a seperate page so now it looks like this
while ($array != 5)
{
echo $value[$array];
echo("
<form action='formProcess.php' method='POST'>
<input type='submit' name='$value[$array]'>
</form>
");
$array = $array + 1;
}
but i need to send that current array value with it. i feel like im being retarted, how would i get the value of the name once im on the other page? like this?
$array = $_POST['submit'];
or
$array = $_POST['$value[$array]'];
would that work, i really don't know.

New Topic/Question
Reply



MultiQuote





|