I'm adding features to legacy code that involves fairly old material.
I've been around coding many years but not lots of Javascript/HTML (lately).
I have a need to fix a number of input variables in a .html prior to eventually going off to handle database requests w/perl/CGI.
Thus far, I've managed to handle all situations with "hidden" input types, but now I need to take the system date, count a number days in the future for one boundary and then count a number of days into the past for an other boudary, normalize these values and then feed them to the POST/Submit.
So, I wrote my future date routine (Plus45) in the javascript portion, but I am confused on how I might trigger it in order to substitute the date value into my ...proceedings? Below are some things I tried, to no avail.
Is there something I'm missing? Or would it just be better to perform all of this in perl/CGI?
Thanks,
mhutch
<input type=hidden value = "08092006" name=FUTURE_DAT > <input type=hidden value = "java script:Plus45()" name=FUTURE_DAT> <input type=hidden value = eval(Plus45); name=FUTURE_DAT >

New Topic/Question
Reply



MultiQuote



|