Answer the question
In order to leave comments, you need to log in
How to get the same value from the input "xfield[2][h2]"?
Need help with array processing.
There are several inputs:
<input id="xf_txt1" name="xfield[1]" value="Заголовок1" class="head_txt"/>
<input id="xf_txt2" name="xfield[2][h2]" value="Заголовок2" class="head_txt"/>
<input id="xf_txt3" name="xfield[3]" value="Заголовок3" class="head_txt"/>
foreach( $_POST['xfield'] as $item ) {
$items[] = $item;
}
$add = implode( $items,'<br>' );
Заголовок1
Array
Заголовок3
Заголовок1
Заголовок2
Заголовок3
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question