Avatar of peter_coop
Flag for United Kingdom of Great Britain and Northern Ireland

asked on 

Radio button only passes value on refresh

What is happening is that when the page is first loaded, the radio button value is passed correctly and all elements are cleared successfully. If i then enter another entry, the radio button values are not passed to the processing php page. I have to refresh the browser and then the value is passed. (Firebug confirms this). I would be grateful if someone could check my code an point out the error that would cause this. I have pasted the code here:


but I am including the php page here that collects the radio button value. I cannot see where to attach at jsfiddle.net. Many thanks for your help.


    /*Get the posted values from our form*/
    $subject = "General Enquiry";
    /*Clean posted values through mysql real escape string*/
    echo 1;
JavaScriptPHPScripting Languages

Avatar of undefined
Last Comment

8/22/2022 - Mon