Your client side code could be something like this:
Code:
<form action="formProcessor.php" method="post" >
<input type="text" name="myTxt[]" />
<input type="text" name="myTxt[]" />
<input type="submit" value="submit" />
</form>
and formProcessor.php could be something like this:
PHP Code:
<?php
//assing the values from the textboxes to an array
$inpArray = $_POST['myTxt'];
//loop thru the array to display all the textbox values
foreach($inpArray as $key => $value) {
echo $key.' '.$value.'<br />';
}
//display the value in the first etxbox
echo 'value of first input = '.$inpArray[0];
?>
Bookmarks