a를 페이지로 리디렉션해야하고 x가 이미 존재한다고 말해야합니다. 내가 어떤 일을하고msg를 PHP로 사용하여 메시지 표시
는 다음과 같이 생각한다
header('location:newcategory.php'?msg=category exists);
내가 오히려 자바 스크립트보다, PHP에서이 작업을 수행하는 것을 선호합니다. newcategory.php 페이지에서
header("Location: newcategory.php?msg=" . urlencode('category exists'));
: 리디렉션을하고있는 페이지
헤더 ('Location : newcategory.php? msg ='. urlencode ('category exists')); – Catalin
이 질문은 정말 명확하지 않다. – mrwooster