PDA

View Full Version : Jasons Calendar/Database



BettyBoop
06-02-2007, 04:34 PM
1) Script Title: Jason's Date Input Calendar

2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...oncalendar.htm

3) Describe problem: I have my form set up using the calendar script. I can get it to send me an email with the information from the form, but I can't get it to submit it to my MySQL database. I am using Ultimate Form Mail for the form processor. According to UFM, the problem is that the javascript gives the date fields on the form ID's rather than names and that if I fix that, the form processor will work. How do I do that?

mburt
06-02-2007, 05:41 PM
Instead of sending the date to an id (document.getElementById(); ), you send it to a form element in the following format:

document.forms['formName'].elements['elementName']

EDIT//
Or you could reverse the problem and give the input a name, and change your server side code.