Reputation: 105
How get value to one field from multiple textbox?
i have example 3 textbox
<input name="post_code[]" class="input form-control" id="tbCode1" placeholder="Code 1" type="text" value="A01">
<input name="post_code[]" class="input form-control" id="tbCode2" placeholder="Code 2" type="text" value="A02">
<input name="post_code[]" class="input form-control" id="tbCode3" placeholder="Code 3" type="text" value="A03">
but how make the value like this
$postcode = 'A01,A02,A03';
before insert to mysql
Upvotes: 1
Views: 1109