sonic1234
Junior Member
- Oct 19, 2009
- 131
- 25
Hello,
I need a little help with this function.
Suppose my url is: http://testurl.com/index.php?value=3
and i write: $result = $_GET['value'];
I will get answer as $result = 3
But if my url is: http://testurl.com/index.php
I get an error because $_GET['value'] has no value, how to rectify this error?
I need a little help with this function.
Suppose my url is: http://testurl.com/index.php?value=3
and i write: $result = $_GET['value'];
I will get answer as $result = 3
But if my url is: http://testurl.com/index.php
I get an error because $_GET['value'] has no value, how to rectify this error?