Hello, I am new to PHP and I have the following problem.
In one php page I define some variables $teller, $budget. Also I ask for
some input from the user:
<FORM ACTION="resulta at.php" METHOD=POST>
<INPUT TYPE="Text" NAME="gemaakt" MAXLENGTH=3 SIZE=4 VALUE="0">
<INPUT TYPE="Text" NAME="verwacht" MAXLENGTH=3 SIZE=4 VALUE="0">
etc.
Now that I posted the input, resultaat.php is started. I can get the
variables $_POST["gemaakt"] and $_POST["verwacht"] but not $teller and
$budget.
Now I know that has to do with the setting register_global s that is set
off. That is for safety okay, my question:
Is there a safe way to get the variables $teller and $budget also usable
/known in resultaat.php without putting register_global s on?
I tried (being a newby) $_GET["teller'] but that did not work.
Thanks in advance, Edward
In one php page I define some variables $teller, $budget. Also I ask for
some input from the user:
<FORM ACTION="resulta at.php" METHOD=POST>
<INPUT TYPE="Text" NAME="gemaakt" MAXLENGTH=3 SIZE=4 VALUE="0">
<INPUT TYPE="Text" NAME="verwacht" MAXLENGTH=3 SIZE=4 VALUE="0">
etc.
Now that I posted the input, resultaat.php is started. I can get the
variables $_POST["gemaakt"] and $_POST["verwacht"] but not $teller and
$budget.
Now I know that has to do with the setting register_global s that is set
off. That is for safety okay, my question:
Is there a safe way to get the variables $teller and $budget also usable
/known in resultaat.php without putting register_global s on?
I tried (being a newby) $_GET["teller'] but that did not work.
Thanks in advance, Edward
Comment