rdkd1970 Posted June 11, 2011 Share Posted June 11, 2011 I have this code for updating my profile page ie. picture, location, youtube. But it will upload but i get this error message. Notice: Undefined index: parse_var in I have put it as a variable $parse_var and I get this then I put it as $_POST['parse_var'] it does not upload anything how can I put it so I do not get this error message showing. if ($_POST['parse_var'] == "pic"){ if (!$_FILES['fileField']['tmp_name']) { Quote Link to comment https://forums.phpfreaks.com/topic/239095-post-for-pic-location-and-youtube-error-message/ Share on other sites More sharing options...
spiderwell Posted June 12, 2011 Share Posted June 12, 2011 it means you are looking for the variable when it doesnt exist so its an undefined index. use isset() to check its existence first and then if true carry on your script Quote Link to comment https://forums.phpfreaks.com/topic/239095-post-for-pic-location-and-youtube-error-message/#findComment-1228537 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.