You are here: C97net • 5.01 General Functions
Get values from GET form method or URL
function get_param ($var_name, $default = '', $mode = '')
Use this function to read values from form which is using GET method, or from URL.
$var_name is the name of the variable to be read from.
$default is the default value to be assigned if the variable doesn't exist.
$mode is how to read the variable:
Example 1
<?php
require './includes/user_init.php';
echo get_param ('number', 5);
?>
If you call the script with test.php?number=10, it will output '10'.
There is no comment. Why not be the first?