Click here to Skip to main content
15,888,286 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
using a single php file how to handle get and post request on same file

currently what i have tried

PHP
if (isset($_GET["action"])){
//logic goes here
}
if (isset($_POST["action"]) && !empty($_POST["action"])) {
//logic goes here
}

standard way to handle different get and post request with different action method name?? I am using angular at client side. Beginner in PHP I am
Posted
Comments
stibee 30-Jul-15 7:23am    
I belief you did not understand angualar. Normally a site will be loaded at first request, after that the page loads only json files from different dataservices.....

1 solution

you should use two form one with
1=
// here the value which u want to post

// 1 form end


2

// here the value which u want to get on the other page

// end
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900