Im looking for a good php string for date, any ideas? something that can output 20-May-07 is good! I also will need extra code around the field to display a kind of a automatic selection graph. I had seen something like this before but am not sure how to create it. Thanks in advance.
echo date("d-F-y"); PHP: would output that date, but I don't know what you mean by the second thing sorry
so how does it end up being something like? $date = echo date("d-F-y") $_POST['date']); PHP: and what would be a good syntax for that? VAR(11) or something? what i meant earlier was next to when you input the date next to the field could i have a quick pick date select box? and what code do you need for something like that?
Im actually looking at doing something like this but I dont know how to call the date from the database with this code and what code to add to database if any? <input type="hidden" name="Date" value="<%=dteDate%>"> <input name="showDate" type="text" style="width:200; position:absolute;" value="<%=dteShowDate%>" onClick="if(self.gfPop)gfPop.fPopRLCalendar(document.frm.Date,null,null,document.frm.showDate,null);return false;" readonly="true"> <a href="#" onClick="if(self.gfPop)gfPop.fPopRLCalendar(document.frm.Date,null,null,document.frm.showDate,null);return false;" title="Click to open calendar"> <img src="images/iconCalendar.gif" width="16" height="13" border="0" style="position:relative; left:182; top:2; z-index:10;" / PHP:
I prefer to use YYYY-MM-DD format as most script using too(most of php coders are not us residents) code for it: date("Y-m-d");