دقیق نفهمیدم چی میخوای ، ولی اگر قصدن فهمیدن این هست که فرم از کجا ارسال شده از این استفاده کن :
PHP:$_server['http_referer'];
<form id="form" method="post" action="send.php">
یه name به form اضافه کن ببین جواب میده
phpکد:<form id="form" method="post" name="test1" action="send.php">
PHP:isset($_post['test1']) // return boolean
دوست عزیز، من می خوام که اگه مقادیر ورودی کاربر شبیه یه تگ آغاز فرم بود، اسکریپت متوجه بشه.
echo $_POST['name1'];
<form method="post" .... action="">
if(preg_match("/^(.*)(<form.*>)(.*)$/i",$_POST['name1'])){
//is exists
}else{
//not exists
}