Set Hidden Field Value Using Javascript; Use Php Post Method To Send The Data
I need to get the user's screen resolution and save it my database. What I'm doing is this: I have a Javascript function called with that gets the info and passes the value to a h
Solution 1:
have you checked firebug's output? maybe there are some errors? try alert sth in your function, maybe it isn't called after initial page load? try putting function call in submit button's onClick
or form's onSubmit
event.
Solution 2:
Solved it myself, it was just a matter of calling the function after loading the element.
Post a Comment for "Set Hidden Field Value Using Javascript; Use Php Post Method To Send The Data"