how to show the radio button is selected is still ticked?

后端 未结 2 1033
轮回少年
轮回少年 2021-01-28 12:25

my app has 2 radio buttons, when user ticks any of it, the value of the ticked radio button gets saved in the table via ajax, now the problem is, when user gets back to the page

2条回答
  •  时光取名叫无心
    2021-01-28 13:10

    If the user is logged in you should query the database to get the value whether the button was ticked.

    If the user isn't logged in you could use the session id. Although this only works until the user closes his browser / the session expires.

    
    
    
    • /> Gallery Link - In the navigation of my website, display one "gallery" link
      /> Category Links - In the navigation of my website, display a separate link to each category.

    Will check the first radio button

提交回复
热议问题