Hello i have a page that has a pic user id(The id of a stranger obtained when the logged in user clicks on an image) , this page where images are, is called globalusers.php, inspired by Instagram's discover page. In that page i have a hidden input in a form like this:
<input type="hidden" name="user_stuff" value="'.$picUserID.'">
so what i did is that i took this hidden input to another page called strangerprofile.php, this is how i went about doing that:
$strangerID = $_POST['user_stuff'];
This is were the problem comes, when i press a button to submit to a form that posts to strangerprofile.php it then forgets the value of $_POST['user_stuff'] , it returns the following error: Undefined index: user_stuff.
note i cannot use a session for this picuserid because i already have a session dedicated to the user who is currently logged in to the system, so this picuserid is for the friend we are trying to follow