ossn.lib.input.php File Reference

Go to the source code of this file.

Functions

 ossn_input_escape ($str, $newlines=true)
 
 input ($input, $noencode= '', $default=false)
 
 ossn_restore_new_lines ($string, $br=false)
 
 ossn_set_input ($name, $value)
 

Function Documentation

input (   $input,
  $noencode = '',
  $default = false 
)

Get input from user; using secure method;

Parameters
string$inputName of input; integer $noencode If you don't want to encode to html entities then add 1 as second arg in function.

edit: $arsalanshah : fix docs;

Returns
false|string

Definition at line 49 of file ossn.lib.input.php.

ossn_restore_new_lines (   $string,
  $br = false 
)

Ossn Restore New Lines Restore
from the string to new line

Parameters
string$stringA valid string in which you want to restore lines.
boolean$brIf you want newlines to replaced by html
tag.
Returns
string

Definition at line 74 of file ossn.lib.input.php.

ossn_set_input (   $name,
  $value 
)

Set a value for input

Parameters
string$nameName of input
string$valueValue of input
Returns
void

Definition at line 97 of file ossn.lib.input.php.