faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

2 of 2 people (100%) answered Yes
Recently 2 of 2 people (100%) answered Yes

Entry

how can i know that a page is using a GET method or POST method without checking the URL

Mar 28th, 2008 16:47
ha mo, Chris Thompson, vijesh Nair,


<code>
//  this page received a GET
if($_GET){
    echo 'GET happened';
}
//  this page received a POST
if($_POST){
    echo 'POST happened';
}
</code>
http://www.tantofa.com
http://www.fantofa.com
http://www.mantofa.com
http://www.tanpola.com
http://www.tampola.com
http://www.yamot.com
http://www.mozmar.com
http://www.templatestemp.com