$roidInfo = '';
$nomeDominio ='';
if (isset($_GET['infoDominio']))
{
$nomeDominio = filter_input(INPUT_GET, 'nomeDominio', FILTER_SANITIZE_STRING);
$dominioVo->setNome($nomeDominio);
try
{
...
$roidInfo = isset($infoDominio['roid']) ? $infoDominio['roid'] : '';
}
catch (EppCommandsExceptions $e)
{
...
}
//all well here, I get the dump with values:
//var_dump($nomeDominio);
//var_dump($roidInfo);
}
if (isset($_POST['atualizarDominio']))
{
var_dump($nomeDominio); //dump ""
var_dump($roidInfo); //dump ""
On the above excerpt I lost the value of $nomeDominio and $roidInfo but I don't understand why. Can I have your help to find out why is this happening?
UPDATE
Here is, the exact same issue, but by using SESSIONS:
<?php session_start(); ?>
<?php
$roidInfo = '';
$nomeDominio ='';
if (isset($_GET['infoDominio']))
{
$nomeDominio = '123';
try
{
//...
$roidInfo = '456';
$_SESSION['nomeDominio'] = $nomeDominio;
$_SESSION['roidInfo'] = $roidInfo;
//retrieving the values. OK.
var_dump($_SESSION['roidInfo']);
var_dump($_SESSION['nomeDominio']);
}
catch (EppCommandsExceptions $e)
{
//...
}
}
if (isset($_POST['atualizarDominio']))
{
//retrieving index undefined. not ok.
var_dump($_SESSION['nomeDominio']);
var_dump($_SESSION['roidInfo']);
//all the rest... runs
}
?>
Thanks in advance, MEM