First i’m gonna paste the code then i’ll explain what the problem is :
[php]
<?php
if (isset($_POST[‘Submit1’])) {
$Value1 = “RandomText”;
}
if (isset($_POST[‘Submit2’])) {
echo $Value1;
}
[/php]
I have 2 Submit buttons, what i want to do is program it in a way that when you click on the FIRST SUBMIT BUTTON, it sets the variable ( in this case $Value1 = “RandomText” ) when you click the SECOND SUBMIT BUTTON, it reads the variable
However when i use this code, i click the first button to set the variable no problem, but when i click the second one, it tells me that the variable ‘Value1’ is not defined
the script above is not the original script, it’s just an exemple i created to simplify the problem
thanks in advance