Re: script to check if form is submitted from the same page?

From: Date: Sat, 12 Aug 2006 19:52:59 +0000
Subject: Re: script to check if form is submitted from the same page?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-240565@lists.php.net to get a copy of this message
> could I use this code to check if form is submitted from the same > page/same domain > > if ($_POST['form_submitted'] == 'Yes') > { > if (preg_match($_SERVER['HTTP_HOST'], $_SERVER["HTTP_REFERER"]) == 0) > { > die ('^&%*^%#@#'); > } > } I prefer to use 'session_start();' http://www.php.net/manual/en/function.session_start If I'm not wrong Best Regards ============BBC============ **o<0>o**

« previous php.general (#240565) next »