Textbox value
Moderator: General Moderators
Textbox value
In page A, i have use textbox to dispay list of records using loop (for). I named that textbox 'txtStudent<?php echo $i ?>' with variable $i is the index (get the value from looping). After I've puts the value into all of the textbox, i post(submit) that page A to page B. The problem is, in page B, I don't know how to retrieve the value of the textbox (txtStudent<?php echo $i ?>). Can anybody help me pls..thanx.
Code: Select all
<?php
$i = 0;
while (isset($_POSTї'txtStudent' . $i])) {
echo $_POSTї'txtStudent' . $i];
$i++;
}
?>