adsense


Saturday, 28 November 2015

C++ LANGUAGE PASSING INFORMATION USING POST METHOD

COMPUTER LANGUAGES HTML,C,C++.JAVA,.NET AND MULTIMEDIA basics and programs click home button



C++ LANGUAGE PASSING INFORMATION USING POST METHOD





Passing Information Using POST Method 


A generally more reliable method of passing information to a 
CGI program is the POST method. This packages the information 
in exactly the same way as GET methods, but instead of sending 
it as a text string after a ‘?’ in the URL it sends it as a 
separate message. This message comes into the CGI script in 
the form of the standard input. 

The same cpp_get.cgi program will handle POST method as well. 
Let us take same example as above, which passes two values 
using HTML FORM and submit button but this time with POST 
method as follows: 

<form action="/cgi-bin/cpp_get.cgi" method="post"> 
First Name: <input type="text" name="first_name"><br /> 
Last Name: <input type="text" name="last_name" /> 
  
<input type="submit" value="Submit" /> 

</form> 

Here is the actual output of the above form. You enter First 
and Last Name and then click submit button to see the result. 

 First Name: 
  Last Name: 


No comments: