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 the% PHP
stretch it will check whether the $w_rec
% is empty, and if it is and the user confirms he 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\");
Note * The program as a whole is only PHP
.