How to take a string and make it fields?
Posted: Tue Mar 22, 2011 4:23 pm
So, I have a script that I need to take a date (currently as a string), and split it up to enter them in forms... example:
Date: May 20, 2009
I need it to show up as:
<INPUT TYPE="TEXT" VALUE="MAY"> <INPUT TYPE="TEXT" VALUE="20"> <INPUT TYPE="TEXT" VALUE="2009">
I've looked up preg_match, which is what I was recommended, but I have no idea what the sample code is supposed to look like?
halp!
Date: May 20, 2009
I need it to show up as:
<INPUT TYPE="TEXT" VALUE="MAY"> <INPUT TYPE="TEXT" VALUE="20"> <INPUT TYPE="TEXT" VALUE="2009">
I've looked up preg_match, which is what I was recommended, but I have no idea what the sample code is supposed to look like?
halp!