Welcome Guest, Not a member yet? Register   Sign In
How to properly handle a function that needs a variable?
#1

[eluser]Chris.Campbell[/eluser]
If I have a function that expects a variable from the URL, how to I properly redirect if the user modifies the URL so the variable does not exist? I cannot figure out how to use the redirect function.
#2

[eluser]BrandonDurham[/eluser]
Code:
function functionName($var=NULL)
{
    if (!$var) ...
}
#3

[eluser]Chris.Campbell[/eluser]
Solved. Make sure you load the URL helper Tongue




Theme © iAndrew 2016 - Forum software by © MyBB