hungryOrb Posted October 10, 2007 Share Posted October 10, 2007 Trying to make a button, which when clicked, inserts today's date inside the textbox to its' left. Anyone know how to set up the HTML and PHP? It's really the HTML im a little confused about, as not sure how to set up the form.. I've searched the web some but no avail :/ TIA Quote Link to comment https://forums.phpfreaks.com/topic/72627-solved-date-button-help/ Share on other sites More sharing options...
pocobueno1388 Posted October 10, 2007 Share Posted October 10, 2007 This would be done with JavaScript. Quote Link to comment https://forums.phpfreaks.com/topic/72627-solved-date-button-help/#findComment-366169 Share on other sites More sharing options...
hungryOrb Posted October 10, 2007 Author Share Posted October 10, 2007 Oh, hmm, it's not possible to simply use an onClick, and refer back to a PHP date() func? Quote Link to comment https://forums.phpfreaks.com/topic/72627-solved-date-button-help/#findComment-366173 Share on other sites More sharing options...
pocobueno1388 Posted October 10, 2007 Share Posted October 10, 2007 onClick is a javascript thing. I'm not very good with javaScript, so I can't give you much help. This site should be helpful http://www.tizag.com/javascriptT/ It shows you how to work with dates, onlick, etc. So try finding your answer there. If you can't, then I would post this in the JavaScript forum. Quote Link to comment https://forums.phpfreaks.com/topic/72627-solved-date-button-help/#findComment-366176 Share on other sites More sharing options...
hungryOrb Posted October 10, 2007 Author Share Posted October 10, 2007 Thanks Poco! Quote Link to comment https://forums.phpfreaks.com/topic/72627-solved-date-button-help/#findComment-366181 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.