There is a function called ispostback in asp.net. However there isn’t one in PHP. You use do it to check if a page is a postback. The snippet of code below will create a PHP ispostback function.

// Determine whether the page was requested by GET or POST.
function isPostBack()
   {
      return ($_SERVER['REQUEST_METHOD'] == 'POST');
   }

PHP ispostback equivalent

You may wan to add this PHP ispostback function equivalent to a library of PHP functions.

LEAVE A REPLY

Please enter your comment!
Please enter your name here