What i want to do is,
I have a code which generates 2 textboxes on a button click event througn ajax as many time as button clicks. So On the click of submit button how can i identify textboxes and getvalue of each textbox.
So I want to give dynamic name to each text box.and on the form submit i want to fetch each textbox's value.
can i do something like this
<input type="text" name="fname[]" value="Hello" />
<input type="text" name="fname[]" value="World" />
and get value on submit
<?php
if(isset($_POST['txtfname[]'])){
echo $_POST['txtfname[0]'];
}
?>
Can anybody help?