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">

jQuery Sortable With AJAX & MYSQL // 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); } }); });
Waiting for update
  • Item 1 with a link to Google
  • Item 2
  • Item 3
  • Item 4
[/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 "

$output
";

?>[/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