Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parsing the time or date to a database #72

Open
antistandard opened this issue Apr 15, 2017 · 0 comments
Open

Parsing the time or date to a database #72

antistandard opened this issue Apr 15, 2017 · 0 comments

Comments

@antistandard
Copy link

antistandard commented Apr 15, 2017

Hello,
This script works well, however, is there a way to pass the time from a form to a mysql database?
This is my form field:

<form method="post" action="newUser.php"> etc..
<li><label for="Testing Time">Testing Time</label> <input type="text" id="time" data-format="h:mm a" data-template="hh : mm a" value="0:00 pm" name="testTime" /></li>

Then
in the newUser.php file I have:
$testTime = filter_var($_POST["testTime"], FILTER_SANITIZE_STRING);

but when I echo out the testTime variable it is empty. All my other fields are populating their variables except passing the time gives me empty results.

Is there a reason why the name on the form is not holding the Combodate text as it passes fromthe form to the php file?

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant