To facilitate input and reduce the number of text boxes that appear when the decoration and editing module is used, you need to enter two or three different content in one box, and then use some special characters to separate them, use explode to create a set of data. This method can also be used to determine whether the separator is available. For example:
The code is as follows:
If ($ _ MODULE [tg1_tjly]) {
$ Tg1_tjly = explode ("|", $ _ MODULE [tg1_tjly]);
If (count ($ tg1_tjly)> 1) {// here, when the statistical array is greater than 1, it indicates that it contains one or more interval symbols "| ".
$ Tg1_tjly_tit = $ tg1_tjly [0];
$ Tg1_tjly_con = $ tg1_tjly [1];
} Else {
$ Tg1_tjly_tit = 'reason for recommendation ';
$ Tg1_tjly_con =$ _ MODULE [tg1_tjly];
}
} Else {
$ Tg1_tjly_tit = 'Enter the Recommendation reason title ';
$ Tg1_tjly_con = 'Enter the content of the Recommendation reason. enter the content of the Recommendation reason. enter the content of the Recommendation reason. ';
}
?>