What I want to do is really simple, I just can't get it right. It's a homer simpson day.
I have a form that I'm sending up to php, post method. I want to include in this form, an invisible field - a parameter that was passed into the HTML containing the form.
myform.html?myparameter=avalue
(doesn't have to be an invisible field - but want the value to be posted anyway when I hit submit).
This is probably really easy, and probably don't even need JavaScript - but I just can't get it.
Also, I would like to know how to access a (?myparameter=avalue) parameter value inside a JavaScript function, even if not applicable to this problem.
I have a form that I'm sending up to php, post method. I want to include in this form, an invisible field - a parameter that was passed into the HTML containing the form.
myform.html?myparameter=avalue
(doesn't have to be an invisible field - but want the value to be posted anyway when I hit submit).
This is probably really easy, and probably don't even need JavaScript - but I just can't get it.
Also, I would like to know how to access a (?myparameter=avalue) parameter value inside a JavaScript function, even if not applicable to this problem.