Linked Questions

453 votes
7 answers
802k views

I've only recently been getting involved with PHP/AJAX/jQuery and it seems to me that an important part of these technologies is that of POST and GET. First, what is the difference between POST and ...
Hristo's user avatar
  • 46.7k
7 votes
4 answers
38k views

I'm new in this forum and I'm learning PHP from this night. I want to send a form but I do not know the difference between: <form action="page2.php" method="GET"> and <form action="page2....
Johny G's user avatar
  • 79
-6 votes
2 answers
10k views

Can anyone tell me difference between Httpost and Httpget method.Httpclient can execute POST and GET method.Please explain the difference between 1 and 2nd method 1.)httpclient.execute(httppost) and ...
SREEJITH's user avatar
  • 814
0 votes
7 answers
6k views

I am coding a PHP script, but I can't really seem to get it to work. I am testing out the basics, but I don't really understand what GET and POST means, what's the difference? All the definitions I've ...
Reverb's user avatar
  • 1,041
2 votes
1 answer
9k views

I want to get user input and validate if it is correct or not in the backend... There is something missing but I am not able to figure it out: run.py code: @app.route('/game', methods = ["GET","POST"...
davork's user avatar
  • 179
0 votes
2 answers
2k views

I never understand these 2 completely, can someone please put an end to this ? I have 2 routes : 1- Route::get('/admin/dashboard', 'DashboardController@dashboard'); 2- Route::post('/admin/...
code-8's user avatar
  • 59.5k
0 votes
1 answer
1k views

What is the difference between the GET and POST form method except one(GET) send data from URL and post send directly ? And if i use SSL then should i choose only post since get wont work ?
IE kills stay away from it's user avatar
-5 votes
5 answers
577 views

Possible Duplicate: When should I use GET or POST method? What’s the difference between them? I am creating a newsletter subscription area for my website and I'm wondering which method is ...
Codist's user avatar
  • 1,206
-2 votes
1 answer
194 views

I have a form where I have a password field. When the users submits the form, all the fields including the passwords are clearly visible in the url when they passes through the URL to another php page....
Deva's user avatar
  • 21
0 votes
0 answers
110 views

Actually i am sending ajax requests with in a interval of 4-5 seconds to update a digital display table. Should i use ajax GET or POST What is ajax cache:true/false If i populate DOM elements(some are ...
Deepak Kumar's user avatar
-1 votes
2 answers
80 views

I'm trying to make a database with two linked tables Info and User, I also want to be able to post to the database online, whenever I run the code below, after I click submit on my index page, I get ...
Amy Faulkner's user avatar
0 votes
1 answer
83 views

Why should I use a post request instead of get when I add some info in my database like PostgreSQL. I can just put all necessary data in arguments with get request, like this: @app.get('/...
trp's user avatar
  • 13
-2 votes
1 answer
70 views

I see in few legacy applications, POST request is used to return data to the client. Input data is provided in Form data. Ideally to get data we should be using GET request. What are the possible ...
Omkar Shetkar's user avatar
-3 votes
2 answers
56 views

Can U tell me what are the advantages and reasons of using GET method in php? Why even use it if there is POST? Why do some websites use both GET and POST at the same time? Can U name main reasons? ...
Piter's user avatar
  • 61
0 votes
0 answers
37 views

i need to pass this id <a href="edit.php?id=<?php echo $row['user_id']; ?>"> in here <?php if (isset($_POST['id'])) { $id = $_POST['id']; } else { echo "user ...
Mahdi's user avatar
  • 17
1177 votes
19 answers
393k views

What is an idempotent operation?
Will's user avatar
  • 20.3k
420 votes
27 answers
293k views

From what I can gather, there are three categories: Never use GET and use POST Never use POST and use GET It doesn't matter which one you use. Am I correct in assuming those three cases? If so, what ...
Thomas Owens's user avatar
17 votes
6 answers
47k views

I am bit confused about these super global variable ($_POST, $_GET, and $_REQUEST) in PHP. In which scenario do I need to use these variables in PHP, and what are the main differences these three ...
user avatar
5 votes
4 answers
2k views

I've just started learning PHP and just done with $_POST/$_GET. Now I want to know, what is the pro's and con's of having the PHP to process the data from a form inside the same file, or send the data ...
saltcracker's user avatar
0 votes
3 answers
20k views

I'm New in AJAX. When passing ID to update product. Any explanation for this. Thank you in advance. This $.ajax({ type: 'post', url: 'my_controller/update_product_exe/' + id, //This line ...
Marky's user avatar
  • 55
7 votes
3 answers
13k views

In my project I am using below Javascript code history.back(); for gooing back to previous page.(like back arrow on window). This function is working fine on IE and Firefox but not on google crome? ...
emilly's user avatar
  • 10.6k
3 votes
3 answers
3k views

Hi i am looking at differences between $_GET and $_POST methods , i came across some articles that says A POST request also has $_GET parameters So a POST request is a superset of a GET request; you ...
Kanishka Panamaldeniya's user avatar
0 votes
2 answers
12k views

I want to know the length or size of data we can send through get and post methods.
Biswas's user avatar
  • 127
2 votes
2 answers
2k views

I'm designing a RESTful api for a large collection of reporting data, I would like to pass a complex set of parameters like in the codeblock below. I'm debating between using POST and GET for this ...
dismal's user avatar
  • 133
1 vote
1 answer
3k views

Despite looking at URL building howtos with Flask, I couldn't figure out a way to keep form data in url. This code works fine : @app.route('/', methods=['GET']) def index(): res = '''<form ...
sereizam's user avatar
  • 2,130
2 votes
2 answers
4k views

I have User model and Role model. class User < ActiveRecord::Base # Include default devise modules. Others available are: # :confirmable, :lockable, :timeoutable and :omniauthable devise :...
Zulhilmi Zainudin's user avatar
2 votes
2 answers
2k views

I am trying to make a POST request from my View by calling an ActionResult in my Controller. Basically there are a list of events in the view and the user can view the details of the event by clicking ...
SKLAK's user avatar
  • 3,985
0 votes
2 answers
7k views

I'm trying to poll the state of checkboxes (this is done in JS every three seconds). This solution returns "None" (see code below); Both printouts (with 'args' and with 'form') return "None". I'm ...
GG_Python's user avatar
  • 3,541
2 votes
5 answers
3k views

I am creating an edit edit/delete user table and have created an 'edit' button for each record populated in the table. I want to do several things. 1. when an edit button is pressed for a specific ...
vhdz04's user avatar
  • 159
0 votes
3 answers
419 views

I was trying to pass JSON to a PHP script in AngularJS, like so: var testObj = { answers : { aa : 2, ab : 3 } }; var userAnswers = angular.toJson(testObj.answers); $http.post("ajax/...
flapas's user avatar
  • 583

15 30 50 per page