แล้วฉันจะทำยังไงให้ได้ค่าตอนที่ทำการส่งข้อมู ฉันกำลังสร้างที่นำเข้าข้อมูลผ่านทางไปเรื่อยๆจากที่ผู้ใช้การเลือกแต่ไม่รู้ว่าต้องดึงข้อมูระนำเข้าข้อมูลค่าผ่านทางโพสต์วิธีการ
นี่คือตัวอย่างของสิ่งที่ฉันมี
// string is based on database values it can be anything which i can't tell
Example code
$string = 'math,english,biology';
$exp = explode(',', $string);
foreach($exp as $value){
print '<input type="text" name="'.$value.'[]" value="" />
}