Forum Moderators: coopster
$next_action_year = date('Y');
$next_action_month = date('m');
$next_action_day = date('d');
$selected_date =
"
selectedDate:{
year:$next_action_year,
month:$next_action_month,
day:$next_action_day
},
";
echo "
<script type='text/javascript'>
window.onload = function(){
new JsDatePick({
useMode:2,
target:'inputField',
dateFormat:'%m-%d-%Y',
$selected_date
});
};
</script>
";
echo "<input type='text' size='12' name='next_action_date' id='inputField' value = '$next_action_month-$next_action_day-$next_action_year' />";
include ('includes/biz_dev_entry_form.php'); if (isset($_POST['submit'])) {
$nextAction = $_POST['next_action'];
echo "Next Action: $nextAction <br/>";
$nextActionDate = $_POST['next_action_date'];
echo "Next Action Date: $nextActionDate <br/>";
exit();
Next Action: call sammy again
Next Action Date: 12-07-2018
Next Action: Call Mary to discuss details
Next Action Date:
if (isset($_POST['next_action_date'])){