answersLogoWhite

0

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

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

How many method used to collect values in a form in php?

POST, GET & REQUEST will get the values from a form.


Using php how do you choose from get method and post method to get information from forms?

Use the post method as far as possible. It encrypts the requests and then sends it to the server. Comparatively you could say it is more secure.


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 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 difference between POST and REQUEST methods in PHP?

The $_POST array contains only variables supplied by a form that used the POST method, while the $_REQUEST array combines the $_POST, $_GET and $COOKIE arrays.


What is the main method of starting PHP code?

When scripting in PHP, you always want to open up the script with a tag.


What is latest version in php?

Probably 5.4. In either case try the below method to get the version on your computer <?php echo phpversion(); ?>


Who is the secure in post and get method?

Post is more secure method in forms. It does not supply the form information in the URL.


What is the role of HTML in php?

HTML is one method by which PHP can output a response. Other response methods are file, database, email, and network (URI).


Why we use php?

PHP is a web programming language . It is majorly used in web applications. \ It is used for creating dynamic webpages that interact with the user . PHP offers many advantages; it is fast, stable, secure, easy to use and open source


Is it possible to put php in an onclick HTML event?

No. PHP runs on the server. It receives a http request from the web server, and sends output (typically as html) to the browser. Any code in an onclick event would be handled by javascript. To send data back to the webserver (and PHP) you can make a synchronous request (AJAX) from an onclick, or any other browser event.


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.