Ziddia Posted May 23, 2011 Share Posted May 23, 2011 Hi! I have created a new radio button and a new onclick button which should send you to one page if the radio button is depressed and another if it is not pressed. Eg if (code for button depressed) { //a link I cans be bothered writing } else { //a different link. } Just the one radio button. Just the one submission button. I can't use PHP for it. Also, just as a side note, is it possible to connect to mySQL using JavaScript so that I can register whether that button has been pressed? So that it is saved for the entire website. Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/237166-javascript-mysql-and-radio-buttons/ Share on other sites More sharing options...
sunfighter Posted May 23, 2011 Share Posted May 23, 2011 What you want to do is store the result of a single event -> pressed or not pressed. Use $_session for that. Quote Link to comment https://forums.phpfreaks.com/topic/237166-javascript-mysql-and-radio-buttons/#findComment-1218919 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.