Hi, i have a question but not sure if i can do it with javascript or if i'd need php for it.
Ok so i have a form which has been created with html, the form itself contains many radio buttons which all have their own value name. Currently when the form is submitted it goes through a javascript procedure, what i would like to do is store the value from the current selected item in the form so that i can later call upon that variable on a seperate page. The form method cannot be changed to $_POST and would like to know how it can be done.
To explain a bit more clearly about what i am after, i have 6 radio buttons, each radio button has it's own value e.g. value="value1" etc. how do i get a variable in javascript/php to equal that value and then change if the focus goes onto a seperate radio button?
e.g. one that has value="value2". That value will be stored in a variable, then i can later call upon that variable on a seperate page and find out it's value.
It might even be better if i had a way to detect what radio button your on when you press the submit button, if that is at all possible.
All my radio buttons have the same name "rad" as this is needed as part of my code and i have this code when you click on a radio button:
onclick = "ReadForm (this.form, false);" (this being no relevance to you what it does but basically as you can gather i'm telling the readform to switch to false once radio button is clicked)
I just basically want to know how to find out what form element you are on once a submit button is pressed, hold the data in a variable, then be able to call upon it on a later page.
Would i need to use php, could i just store the value in a cookie or what, if so do i get the value?
thanks