Copy codeThe Code is as follows:
$ Act =! Empty ($ _ GET ['ac'])? Trim ($ _ GET ['ac']): '';
Switch ($ act ){
Case 'adda ':
$ Area ['A _ value'] = trim ($ _ POST ['A _ value']);
$ Area ['A _ type'] = 3;
If (strpos ($ area ['A _ value'], "\ n") === false ){
// Echo $ area ['A _ value'];
// Add ($ area );
// $ DB-> insert ('bcrh _ article_attr ', $ area );
}
Else
{
$ Areanames = explode ("\ n", $ area ['A _ value']);
Foreach ($ areanames as $ areaname ){
$ Areaname = trim ($ areaname );
If (! $ Areaname) continue;
// Echo $ areaname. '| ';
$ Area ['A _ value'] = $ areaname;
// $ DB-> insert ('bcrh _ article_attr ', $ area );
}
}
Header ("refresh: 0; url = gfxrtz. php"); // jump to the page, note the path
Exit;
Break;
}
Copy codeThe Code is as follows:
<Form method = "post" action = "? Act = adda "onsubmit =" return Dcheck (); ">
<Table cellpadding = "2" cellspacing = "1" class = "tb">
<Tr>
<Td class = "tl"> <span class = "f_hid"> * </span> attribute </td>
<Td>
<Textarea name = "a_value" id = "a_value" style = "width: 200px; height: 100px; overflow: visible;"> </textarea>
Batch addition is allowed. One row is allowed. Press enter to wrap the line. </td>
</Tr>
</Table>
<Div class = "sbt"> <input type = "submit" name = "submit" value = "Confirm" class = "btn"> <input type = "reset" name = "reset" value = "reset" class = "btn"> </div>
</Form>