SEARCH:
Previous: gpExists Next: gpSet

rowFromGP

string GP_Prefix
array Row


Returns a Row Array taken from a subset of the GET-POST Variables sent by the browser. Only variables that begin with GP_Prefix will be returned, and the GP_Prefix will be stripped off of the key.

Using rowFromGP
If an HTML Form contains these controls
<input name='txt_control1' value='Foo'>
<input name='txt_control2' value='bar'>
When the user submits the form, we use rowFromGP
<?php
$row
=rowFromGP('txt_');
print_r($row)
?>
Which will output the following
Array
(
    [control1] => Foo
    [control2] => bar
)

Previous: gpExists Next: gpSet