problem passing variables to a sec. php script
Posted: Fri Aug 30, 2002 9:08 pm
Hi everybody,
problem... passing a variable to a sec. php script but as the code is executed the variable in the sec. script is changed. would like to keep the variable the same no matter what takes place in the sec script.
program1.php
<?
<a href="<?php echo"phpcode.php?cmd1=$info1";?>">
?>
phpcode.php
<?
$variable1 = $cmd1; \\ this part works
\\but as the code cont. the $variable1 gets changed..the above line is the first line in the code.. need to keep this variable constant, how is this done after receiving the variable from the program1.php...
?>
problem... passing a variable to a sec. php script but as the code is executed the variable in the sec. script is changed. would like to keep the variable the same no matter what takes place in the sec script.
program1.php
<?
<a href="<?php echo"phpcode.php?cmd1=$info1";?>">
?>
phpcode.php
<?
$variable1 = $cmd1; \\ this part works
\\but as the code cont. the $variable1 gets changed..the above line is the first line in the code.. need to keep this variable constant, how is this done after receiving the variable from the program1.php...
?>