No, you are better using the correct type ie: $_POST or $_GET
POST, GET & REQUEST will get the values from a form.
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.
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.
< ?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 */ ? >
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.
Probably 5.4. In either case try the below method to get the version on your computer <?php echo phpversion(); ?>
When scripting in PHP, you always want to open up the script with a tag.
HTML is one method by which PHP can output a response. Other response methods are file, database, email, and network (URI).
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.
Post is more secure method in forms. It does not supply the form information in the URL.
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
well if your talking about server variables then you might do something like this: i have a form with name and email on it, say im stupid and cant remember if i set the form to post or get method, in my PHP script i would do like so to retreive the value either way <?php $name = $_REQUEST['name']; //could be from $_POST or $_GET but who really knows???? $email= $_REQUEST['email']; //could be from $_POST or $_GET but who really knows???? ?> this will get the two values no matter which method they were sent to the script with...hope this helps dude! :D