Last active
March 5, 2019 07:54
-
-
Save peterson-umoke/79f2d8f6070ab423d830ac7d4121c633 to your computer and use it in GitHub Desktop.
Need help getting the data into a serialized format
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<GridRow reset> | |
<GridColumn col='half'> | |
<div className='form-group'> | |
<select | |
name='document_type[]' | |
id='document_type' | |
required | |
> | |
<option value=''>Document Type</option> | |
<option value'britain'> Britain </option> | |
<option value'canada'> Canada </option> | |
<option value'nigeria'> Nigeria </option> | |
</select> | |
</div> | |
</GridColumn> | |
<GridColumn col='half'> | |
<div className='form-group'> | |
<input | |
type='text' | |
placeholder='Document number' | |
name='document_number[]' | |
id='document_number' | |
className='form-control' | |
autoComplete='off' | |
required | |
/> | |
</div> | |
</GridColumn> | |
</GridRow> | |
<GridRow reset> | |
<GridColumn col='half'> | |
<div className='form-group'> | |
<select | |
name='document_type[]' | |
id='document_type' | |
required | |
> | |
<option value=''>Document Type</option> | |
<option value'britain'> Britain </option> | |
<option value'canada'> Canada </option> | |
<option value'nigeria'> Nigeria </option> | |
</select> | |
</div> | |
</GridColumn> | |
<GridColumn col='half'> | |
<div className='form-group'> | |
<input | |
type='text' | |
placeholder='Document number' | |
name='document_number[]' | |
id='document_number' | |
className='form-control' | |
autoComplete='off' | |
required | |
/> | |
</div> | |
</GridColumn> | |
</GridRow> | |
<GridRow reset> | |
<GridColumn col='half'> | |
<div className='form-group'> | |
<select | |
name='document_type[]' | |
id='document_type' | |
required | |
> | |
<option value=''>Document Type</option> | |
<option value'britain'> Britain </option> | |
<option value'canada'> Canada </option> | |
<option value'nigeria'> Nigeria </option> | |
</select> | |
</div> | |
</GridColumn> | |
<GridColumn col='half'> | |
<div className='form-group'> | |
<input | |
type='text' | |
placeholder='Document number' | |
name='document_number[]' | |
id='document_number' | |
className='form-control' | |
autoComplete='off' | |
required | |
/> | |
</div> | |
</GridColumn> | |
</GridRow> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or better yet setting the name in this kind of format
{
document_type: [
0:'nigeria',
1:'canada',
2:'nigeria'
],
document_number: [
0: 'data',
1: 'data',
2: 'data 3'
]
}