A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/sqlpage/SQLPage/issues/751 below:

In version 0.32.0 all radio buttons are checked · Issue #751 · sqlpage/SQLPage · GitHub

Introduction

If you use radio buttons in version 0.32.0 alle buttons are marked as checked. So the last one wins
In version 0.31.0 it behaves correctly.

To Reproduce

List of steps to reproduce the behavior. Include the sql file you are using and the eventual relevant parts of your database schema

SELECT
        'form'          as component,
        'POST'          as method;

SELECT
        'priority'      as name,
        'None'          as label,
        'radio'         as type,
        'None'          as value,
        2               as width,
        TRUE            as checked;
SELECT
        'priority'      as name,
        'Low'           as label,
        'radio'         as type,
        2               as width,
        'Low'           as value,
        FALSE           as checked;
SELECT
        'priority'      as name,
        'Medium'        as label,
        'radio'         as type,
        2               as width,
        'Medium'        as value,
        FALSE           as checked;
SELECT
        'priority'      as name,
        'High'          as label,
        'radio'         as type,
        2               as width,
        'High'          as value,
        FALSE           as checked;


SELECT
        'debug'         as component;
SELECT
        "key", 
        "value" 
FROM 
        json_each(sqlpage.variables('post'));
SELECT 
        "version" as key,
        sqlpage.version() as value;

-- END
![v31](https://github.com/user-attachments/assets/49ddc2ca-7970-42f8-9011-22b65ca0bb3c)
![v32](https://github.com/user-attachments/assets/9b205060-3953-4cc6-9d62-e803310ef7e1)
![html_source](https://github.com/user-attachments/assets/02b8b76a-0bb9-47d8-a3b7-aa2691f44f7c)
Actual behavior

After following these steps, what happened ?
If you saw an error on the command line or inside your page, then paste it here

Screenshots

If applicable, add screenshots to help explain your problem.

Expected behavior

A clear and concise description of what you expected to happen.

Version information Additional context

Add any other context about the problem here.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4