I am trying to use the datepicker javascript from nfstools.com/tips/DatePickerTest.htm I have a php function (userform) that controls the output of the form fields and I also have a javascript function (displayDatePicker) that is part of the same php file. The javascript works if I have it separate from the php function like this:
But when I try to interlace my php function with it, I can't seem to get the syntax and the quotes correct. This does not work:
Any ideas?
LJ Wilson
My personal saying - Just remember, it can always get worse, and usually will.
Code:
<form>
Expiration Date: <input name="date_expired">
<input type=button value="select" onclick="displayDatePicker('date_expired', this);">
</form>
But when I try to interlace my php function with it, I can't seem to get the syntax and the quotes correct. This does not work:
Code:
echo userform ($lang['Date_Expired'], "<input name='date_expired'><input type=button value='select' onclick='displayDatePicker('date_expired', this);'>");
Any ideas?
LJ Wilson
My personal saying - Just remember, it can always get worse, and usually will.