Datepicker or equivelant and FormMail

Category: How To

icmc69
Asked:
2013-12-02 8:12 am EST

Hits: 503
Hi all
Another small problem that I have. I have set up form mail and it is working a treat but in my
form I want to add a datepicker widget . On the webpage it works fine. It can be seen, it can be used but
when I submit the form the email that is sent to me has all the information in it except the dates.
What am I missing?
Can this not be done in a form to add a datepicker and send this in a form?

Thx for your answers in advance
Ian

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

JeffMa
Staff
7,372 Points
2013-12-02 8:42 am EST
To do so, you will need to modify your code on the page to pass the information along to FormMail. Your form will use a form action to pass information along to FormMail so you will need to modify your code to pass information defined within the date picker to be sent along to FormMail. Within your form, you would need to pass something like this:

<input type="hidden" name="date" value="Your date to be passed here" />



The easiest way to dynamically insert the date that is chosen would be to use PHP within the date picker widget to define the date as a PHP variable, then use that variable within the value in the form field. This would take some PHP knowledge but certainly can be done by you or your developer.

You may also view more information on creating a form with FormMail at the following:

Creating a Contact Form with FormMail

You must login before you can post a comment about this answer.

Like this Question?

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!