Betty_S Posted February 26, 2007 Share Posted February 26, 2007 Hi to you all,How can I save the date in the form’s fields?Currently, I’m using cookies. I wonder if there is a better way.Thanks. Link to comment Share on other sites More sharing options...
azharschools Posted February 26, 2007 Share Posted February 26, 2007 nice question,its very simple method.using built-in function date();it will get the system date . So save this value in the variable and put in the form field.var date=date();document.yourformname.elementname.value=date; Link to comment Share on other sites More sharing options...
pulpfiction Posted February 26, 2007 Share Posted February 26, 2007 If you are asking about store the date in one page and pass that information to another page, then you can use hidden textbox, and then the value is passed in the URL.<form id="frm" action="nextpage.html" method="get">...........................<input type="hidden" name="hide" value="Some text down the box." /> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now