FCL-Web and checkox input
Original Reporter info from Mantis: silvioprog
-
Reporter name: silvioprog
Original Reporter info from Mantis: silvioprog
- Reporter name: silvioprog
Description:
Hello,
I saw a small problem in FCL-Web: it does not return the field name from a unchecked input (e.g: &LtPos;input type="checkbox">).
In HTML, the checkbox returns the following values:
&LtPos;input type="checkbox" checked>: Return = on
&LtPos;input type="checkbox" >: Return = (i.e. empty string)
But if I have the following HTML:
&LtPos;!DOCTYPE HTML>
&LtPos;html lang="en-US">
&LtPos;head>
&LtPos;meta charset="UTF-8">
&LtPos;title>&LtPos;/title>
&LtPos;/head>
&LtPos;body>
&LtPos;form action="http://localhost/cgi-bin/project1" method="post">
<input type="checkbox" name="active"/><br />
<input type="text" name="name" value="Foo"/><br />
<input type="submit" />
&LtPos;/form><br/>
&LtPos;/body>
&LtPos;/html>
and if I uncheck the "active" input, the FCL-Web return only "name=Foo" in ContentFields.
Path to reproduce this problem in attached.
Mantis conversion info:
- Mantis ID: 25737
- Version: 2.7.1