InMotion Hosting Support Center

Datepicker or equivelant and FormMail

Category: How To

2013-12-02 8:12 am EST

Hits: 728
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

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

You must login before you can submit an answer.



11,186 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?

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Need more Help?


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:
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!