Input Type Checkbox no Value & no name submitted
Forum rules
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Always add your TYPO3, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
Input Type Checkbox no Value & no name submitted
I've made an Form with an Checkbox Input Field.
The Field name and the value will not be submitted with input type="checkbox"
If i change the type to input or something else it works. Is this a bug?
Thanks and good evening tenkraD
The Field name and the value will not be submitted with input type="checkbox"
Code: Select all
<div class="input-group checkbox-new">
<input type="checkbox" class="form-control-checkbox-code"
name="<?= $enc->attr( $this->formparam( 'testname' ) ); ?>"
value="<?= $enc->attr( 'testvalue' ); ?>"
/>
</div>
Thanks and good evening tenkraD
Re: Input Type Checkbox no Value & no name submitted
The value is only submitted to the server if the checkbox is really checked. That's pure HTML and not related to Aimeos
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star