close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

DataAssist with Datepicker

Thread began 3/29/2013 6:45 am by wellsjm435768 | Last modified 3/29/2013 12:37 pm by Jason Byrnes | 1953 views | 9 replies |

wellsjm435768

DataAssist with Datepicker

I am using dataAssist and have a very simple insert form. One of the form inputs is a date and I chose to insert datepicker to assist in grabbing dates. The form and datepicker seem to work together fine, but the date chosen is not being sent to the database.

Can you help me?

Sign in to reply to this post

Jason ByrnesWebAssist

can you send a copy of the page.

Sign in to reply to this post

wellsjm435768

Hello

File is attached.

Good Friday!

Jon

Sign in to reply to this post

Jason ByrnesWebAssist

1) The insert behavior is expecting the date to come from a form elemewnt named "date"

the date picker element is named "lou-ann-events" though:

<input id="datepicker_1" name="lou-ann-events" type="text" />

change the name to date:
<input id="datepicker_1" name="date" type="text" />


2) a date column in MySQL Expects the date to be in the yyyy-mm-dd format.

add the following code at ine 1 to reformat the date to the expected format:

php:
<?php 

if(isset($_POST['date'])) { 
    
$_POST['date'] = date("Y-m-d"strtotime($_POST['date'])); 
}
?>
Sign in to reply to this post

wellsjm435768

Thank you

This works great now. I do have another issue. Once the data is submit via the insert form I am taken to the details page; which is fine. However, when I click the "Back to Results" button I am taken to the Results page where no information is listed. I am unable to edit or delete the data.

Please let me know if I need to submit another page for you to examine.

Thank you

Jon

Sign in to reply to this post

Jason ByrnesWebAssist

send a copy of the results page please.

Sign in to reply to this post

wellsjm435768

Here you go...

Sign in to reply to this post

Jason ByrnesWebAssist

the results page recordset is set to filter on a date URL variable, there should not be a filter on the results page recordset.

Sign in to reply to this post

wellsjm435768

What would be the safest way to remove that URL?

Sign in to reply to this post

Jason ByrnesWebAssist

edit the recordset and remove the filter.

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...