본문 바로가기

PHP

extract 대체와 strip_tags를 이용한 전달변수 취득

foreach($_POST as $key => $value){ $$key = mysql_real_escape_string(strip_tags($value)); }
foreach($_GET as $key => $value) { $$key = strip_tags($value)); }