I have a problem calling a program by PHP
passing parameters.
Code:
<?
print("<script language=javascript>
alert(\" <<< Dados Alterados com Sucesso! >>>\");
if($w_rec != "")
{
if (confirm(\"Deseja alterar as demais opções?\") == true)
{
location.replace(\"../sai_cada_peri/sai_frm_alte_peri.php?$w_rec+$w_cont\");
}
else{
parent.location.replace(\"../sai_cada_peri/sai_alte_peri.php\");
}
}
else{
parent.location.replace(\"../sai_cada_peri/sai_alteperi.php\");
}
</script>");
?>
In this section of PHP
it will check if $w_rec
is empty, and if it is and the user confirms it will call another program passing these parameters. My problem is .. How do I pass these parameters on this call?
The call I'm referring to would be this line:
location.replace(\"../sai_cada_peri/sai_frm_alte_peri.php?$w_rec+$w_cont\");
Obs * The whole program is only PHP
.