repo.or.cz
/
openemr.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
separating facility from user maintenance, improved support for multiple facilities...
[openemr.git]
/
library
/
formdata.inc.php
blob
8cda90d9d4772654bca2765b3c4079ddf9c35d44
1
<
?php
2
function
formData
(
$name
,
$type
=
'P'
) {
3
if
(
$type
==
'P'
)
4
$s
=
isset
(
$_POST
[
$name
])
?
$_POST
[
$name
] :
''
;
5
else if
(
type
==
'G'
)
6
$s
=
isset
(
$_GET
[
$name
])
?
$_GET
[
$name
] :
''
;
7
else
8
$s
=
isset
(
$_REQUEST
[
$name
])
?
$_REQUEST
[
$name
] :
''
;
9
if
(!
get_magic_quotes_gpc
())
$s
=
addslashes
(
$s
);
10
return
$s
;
11
}
12
?
>