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!

Member Avatar
Member Avatar
+0 forum 3

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 …

Member Avatar
+0 forum 0

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 &amp; 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 …

Member Avatar
Member Avatar
+0 forum 1

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 …

Member Avatar
Member Avatar
+0 forum 2

The End.