how to send multiple fields with the same name via jQuery like this:
<input type="text" name="text[]" />
<input type="text" name="text[]" />
<input type="text" name="text[]" />
jQuery:
function upload() {
$.post('example.php', { text[]: Form.text[].value },
function(output) {
$('#result').html(output).show();
});
}
upload.php:
text[$i] = $_POST['text'][$i];
thank you,
EDIT: correct my question.