let me explain
So i have a form in which these fiels are dynamically generated by pressing a button. The generated input number is equal to the number of months between 2 dates. Foreach input the name is actually the months name. Also the value is the month name, so that i can add it in the corect db table row. The problem is that i need to know how to add each field to mysql

Hello guys. I have a form in which i have some dynamically generated input fields like this:

<input value="March" name="month[March]" type="hidden">
<input value="April" name="month[April]" type="hidden">
<input value="May" name="month[May]" type="hidden">
.
.
.

How do i add the input data for each month to mysql? Thanks!

hello. I have this javascript

<script type="text/javascript">
function buildMonthlyEntries() {
    var startDate = new Date(document.getElementById('datastart').value);
    var endDate = new Date(document.getElementById('dataend').value);
    if(startDate == "Invalid Date" || endDate == "Invalid Date") { return null; }
    var entryCount = (endDate.getMonth() - startDate.getMonth())+(endDate.getFullYear() - startDate.getFullYear())*12;
    var monthlyEntries = document.getElementById('monthlyEntries');
    monthlyEntries.innerHTML = "";
    for(var i = 0; i < entryCount; i++) {
        var textElement = document.createElement('input');
        textElement.setAttribute('type', 'text');
        textElement.setAttribute('name', 'entry[]');
        monthlyEntries.appendChild(textElement);

    }
    return null;
}
        </script>

It dynamically ads a number of input fields depending on the number of months between start date and end date. I was wondering how can i add in front of every generated input the month's name. Thanks!

hello guys. I have a html page with jquery drag and drop serialize. Every time i move an item the script auto-updates position in a database. But i don`t want it do update automaticaly, i want to press a button for submision. Can you help me add a button to this? Thank you

[CODE]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>jQuery Sortable With AJAX & MYSQL</title>
<script type="text/javascript" src="jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="jquery-ui-1.7.1.custom.min.js"></script>
<link rel='stylesheet' href='styles.css' type='text/css' media='all' />
<script type="text/javascript">
// When the document is ready set up our sortable with it's inherant function(s)
$(document).ready(function() {
$("#test-list").sortable({
handle : '.handle',
update : function () {
var order = $('#test-list').sortable('serialize');
$("#info").load("process-sortable.php?"+order);
}
});
});
</script>
</head>

<body>
<pre>
<div id="info">Waiting for update</div>
</pre>
<ul id="test-list">
<li id="listItem_1"><img src="arrow.png" alt="move" width="16" height="16" class="handle" /><strong>Item 1 </strong>with a link to <a href="http://www.google.co.uk/" rel="nofollow">Google</a></li>
<li id="listItem_2"><img src="arrow.png" alt="move" width="16" height="16" class="handle" /><strong>Item 2</strong></li>
<li id="listItem_3"><img src="arrow.png" alt="move" width="16" height="16" class="handle" /><strong>Item 3</strong></li>
<li id="listItem_4"><img src="arrow.png" alt="move" width="16" height="16" class="handle" /><strong>Item 4</strong></li>
</ul>
</body>
</html>[/CODE]

thank you very much, it works...but how can i add a path to the mp3 folder? because $song will be in a folder called mp3 an my command line would look like this:
mp3wrap.exe album_name path/to/song1 path/to/song2 path/to/song3

Hello guys. I made a form with 3 inputs (song name 1, song name 2 and album name). When i submit this form it calls a php script like this one:

[CODE]<?php
$song1 = $_POST['song1'];
$song2 = $_POST['song2'];
$album = $_POST['album'];

$output = shell_exec('D:\apache\htdocs\test\mp3wrap\mp3wrap.exe '.$album.' '.$song1.' '.$song2.'');
echo "<pre>$output</pre>";

?>[/CODE]

This merges the 2 song files into 1 song. I can add in the form more song name inputs, but i want php to automaticaly create arrays from inputs and add them to the shell_exec command. So how can i make the php script add the input arrays without me manually writing $song3 = $_POST['song3']; $song4 = $_POST['song4'];...etc?
Thanks