KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In a php page I have following code: if($_REQUEST['c']!="") // I get error on this line itself. Why? { $pidis=(int)($_REQUEST['c']); } I keep getting Undefined index error. On Googling I manage to understand that if a page is access without parameters (in URL) which we are trying to access we can get this error/warning. I believe that if a parameter is not defined in the URL it should just return empty instead of giving error/warning message. I know that it is possible to suppress errors and warning by adding error_reporting(E_ALL ^ E_NOTICE); But I do not want to do this. This same page work just fine on our company's web server but does not work on our clients web server. Why is this happening? How to solve this problem?
Tags (comma-separated)
Save Edits
Cancel