Radio button with the inputselect popup window?
-
qwerty
- Posts: 62
- Joined: 03 Apr 2018 15:59
Radio button with the inputselect popup window?
Could anyone please help me figure out how to change the check box to the radio button in the inputselect popup window? Or any other scripting cmd could achieve similar effects with radio buttons? Thanks.
To see the attached files, you need to log into the forum.
2) Windows Version: Windows 11 Enterprise 26200.8037
3) Screen Scaling Percentage: 150%
3) Screen Scaling Percentage: 150%
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Radio button with the inputselect popup window?
That's not possible with
You could use
inputselect()You could use
html() instead but parsing the return string needs a bit of effortOne of my scripts helped you out? Please donate via Paypal
-
qwerty
- Posts: 62
- Joined: 03 Apr 2018 15:59
Re: Radio button with the inputselect popup window?
Thank you for your quick reply.
Can you provide some examples? Does it follow php _GET syntax for the form return values?
Can you provide some examples? Does it follow php _GET syntax for the form return values?
2) Windows Version: Windows 11 Enterprise 26200.8037
3) Screen Scaling Percentage: 150%
3) Screen Scaling Percentage: 150%
-
highend
- Posts: 15016
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Radio button with the inputselect popup window?
Yes it does.
Code: Select all
$html = <<<>>>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<title>Some title</title>
<body>
<form method="get" action="xys:">
<input type="radio" id="a" name="list" value="a">
<label for="a">A</label><br>
<input type="radio" id="b" name="list" value="b">
<label for="b">B</label><br>
<input type="radio" id="c" name="list" value="c">
<label for="c">C</label><br>
<input type="radio" id="d" name="list" value="d">
<label for="d">D</label><br>
<input type="submit" name="ok" value="Ok">
<input type="submit" name="cancel" value="Cancel">
</form>
</body>
</html>
>>>;
// Replace html: (Ascii 160) with real spaces as well
$htmlResult = replace(utf8decode(urldecode(html($html, 400, 565, self("base")))), chr(160), " ");
// End if "Cancel" was used ("cancel" submits form parameters, "close" does not!)
if (strpos($htmlResult, "cancel=Cancel") != -1 || $htmlResult == "") {
status "Form cancelled...", "8B4513", "stop";
end true;
}
$formRadioButton = regexreplace($htmlResult, "(.*list=)(.*?)(&.*)", "$2");
text "Selected entry: " . $formRadioButton;
One of my scripts helped you out? Please donate via Paypal
-
qwerty
- Posts: 62
- Joined: 03 Apr 2018 15:59
Re: Radio button with the inputselect popup window?
Thank you so much! It helps a lot.

2) Windows Version: Windows 11 Enterprise 26200.8037
3) Screen Scaling Percentage: 150%
3) Screen Scaling Percentage: 150%
XYplorer Beta Club