Hello!
I have a very tricky trouble.
On page 2 I have a form with two submitbuttons, and on page 3 I try to "read" the form, and which button that has been used.
If the secound button is used, I dont get a value into the variable $filename 🙁
Page2:
<FORM METHOD="POST" ACTION="dlpage3.php?programname=<?echo $_GET['programname'];?>&nam=<?echo $_POST["nam"];?>&company=<? echo $_POST["company"];?>&country=<? echo $_POST["country"];?>&email=<?echo $_POST["email"];?>&phone=<?echo $_POST["phone"];?>">
<INPUT TYPE="text" maxlength="7" size="6" NAME="serialnr" value=<?echo $serialnr?>>
<INPUT TYPE="text" maxlength="4" size="6" NAME="model" value=<?echo $model?> >
<INPUT TYPE="submit" name="submit1" style="width: 300px;" value="Download as BRAVO-Package (recommended)">
<p>
<INPUT TYPE="submit" name="submit2" style="width: 200px;" value="Download as SAVF (alternative)"></center>
</FORM>
Page3:
Works fine with button 1,
$filename got the value "agxfgy.zip"
but not with the second button.(variable gets no value)
if($_GET["programname"]=="programa"){
$sub="QRYOPT";
if (isset($_POST['submit1'])) {
$filename="agxfgy.zip";
}
if (isset($_POST['submit2'])) {
$filename="QRYOPT.SAV.zip";
}
}
I also tried to change the submit2 to submit 1 and vice versa. Then button 1 made $filename to "QRYOPT.SAV.zip" . Button 2 still not get any value into the variable 🙁
if($_GET["programname"]=="programa"){
$sub="QRYOPT";
if (isset($_POST['submit2'])) {
$filename="agxfgy.zip";
}
if (isset($_POST['submit1'])) {
$filename="QRYOPT.SAV.zip";
}
}
Would be really happy for any help