consider I have the following post variables
Code: Select all
$result_1_display = $_POST['result1'];
$result_2_display = $_POST['result2'];
$result_3_display = $_POST['result3'];Code: Select all
foreach($array AS $k => $v)
{
echo <input type=\"text\" name=\"name\" value=\"$result_$k_display\">";
}I need to replace $k with the the value of $k... how do I do that?