Results 1 to 2 of 2

Thread: Jasons Calendar/Database

  1. #1
    Join Date
    Dec 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Jasons Calendar/Database

    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?

  2. #2
    Join Date
    Jul 2006
    Location
    Canada
    Posts
    2,581
    Thanks
    13
    Thanked 28 Times in 28 Posts

    Default

    Instead of sending the date to an id (document.getElementById(); ), you send it to a form element in the following format:
    Code:
    document.forms['formName'].elements['elementName']
    EDIT//
    Or you could reverse the problem and give the input a name, and change your server side code.
    Last edited by mburt; 06-02-2007 at 05:42 PM. Reason: Another option
    - Mike

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •