Jump to content

JavaScript, mySQL, and radio buttons.


Ziddia

Recommended Posts

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!

Link to comment
https://forums.phpfreaks.com/topic/237166-javascript-mysql-and-radio-buttons/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.