name value radio button | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

name value radio button

can we use radio button for some action like run a php? i e. two buttons "yes" or "no" if we choise yes then yes.php run... and when we choise no then no.php run... please... answer ty..

18th Jun 2017, 1:19 PM
aditia kusuma
aditia kusuma - avatar
2 Answers
+ 1
you can simply add two button for yes it will be linked to yes.php and for no it will open no.php otherwise you may need to apply if else logic. btw simple button is enough for this.
18th Jun 2017, 1:46 PM
Hasan Misbah
Hasan Misbah - avatar
+ 1
Form must submit to php, let php decide whether execution is needed or not.
18th Jun 2017, 2:24 PM
Calviղ
Calviղ - avatar