answersLogoWhite

0

To get the GET method data in PHP is pretty simple to do, all you need to do is the following.

First of all lets say the page we are on is index.php?type=1&page=10&word=hello

echo $_GET['type']; // outputs: 1

echo $_GET['page']; // outputs: 10

echo $_GET['word']; // outputs: hello

?>

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How do you get information from a form that is submitted using the get method?

In a form submitted using the GET method, the data is appended to the URL as query parameters. You can access this data using the $_GET superglobal array in PHP, or by parsing the URL in other programming languages.


Where are variables displayed when using the POST method?

When data is POSTed to a PHP script, you may access them from the $_POST super global variable.


How do you add a comment in PHP?

< ?php // This is an example of comment in PHP /* This is another example of comment in PHP and we can write comments in multiple lines using this method */ ? >


What is the GET method in PHP?

The GET method in PHP allows you to grab information from the URL to use in your script.For example, say you are on the URL index.php?id=1 you could then in the PHP script grab the id using the GET method to use in your script.


How can you export data from MySQL to PDF using PHP?

If you know FPDF or simlar library which helps to make a PDF file, using PHP,you will be able to write to a PDF file out of data read from mysql tables.


How data can be edited or deleted from database via php?

if you know SQL language, you can run any command by using PHP's mysql_query() function.


Request method is secure or not in PHP?

No, you are better using the correct type ie: $_POST or $_GET


How do you delete data from a MySQL database using PHP?

To delete data from your MySQL database you need to use the mysql_query() function. Please see the example below: <?php mysql_query("DELETE FROM table_name WHERE field_name = 44"); ?>


What is the best method of collecting primary data?

the best method to collect primary data is to make a Baseline Data or using the method of Rapid Rural Appraisal.


How do you make a login using PHP?

Create an HTML form with METHOD="post" and ACTION="login2.php". In login2.php check if the entered username and password are correct. You can get the username with $_POST['name_of_username_input']. The same goes for the password.


How do you post the data from an input type checkbox in a form to MySQL tables using PHP?

using the post command.$_POST['checkboxname'];


What are the advantages and disadvantages of PHP with mysql?

Ultimately PHP is a programming language and MySQL is a database language. Using PHP with MySQL is a nice combination with built-in support and the simplicity of it all. However, there aren't a lot of disadvantages of using PHP with a database, it just allows for better data organization and whatnot. There are definitely advantages and disadvantages to using a database other than MySQL (such as MongoDB or PostgreSQL).