How to call this function with url parameter
function test($str, $str_){
if ($str == $str)
echo "null";
else
echo "helloworld";
}
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use this:
The problem is that you aren’t passing a value for the second parameter. I execute previous code and prints “helloworld”
Second part:
If your intention is to call the function using two parameters in the Url you can use the follow (I’m only modifying the important parts in your own initial code):
and the Url to call this is: execute.php?cmd=hello&cmd2=hello2