0
Uni multiple GET at the same URL smoothly, all using BUTTON.
http://localhost/test/choose_day.php? Inst=teste&sala=sala01&ano=2016&mes=janeiro using
<?php
$acao = $_GET['inst'];
$acao2 = $_GET['sala'];
$acao3 = $_GET['ano'];
$acao4 = $_GET['mes'];
?>
The next GET would be 5 checkbox within a FORM. If I use <form action="confirmar.php" method="get">
then everything OK, the result appears http://localhost/teste/confirmar.php?values[]=18&values[]=28&values[]=38
.
Only I need the previous GET’s in that same URL to send by email.
I complete the form action with the previous GET.
<form action="confirmar.php?&inst=<?=$acao;?>&sala=<?=$acao2;?>&ano=<?=$acao3;?>&mes=<?=$acao4;?>&diahora=<?=$value;?>';"`
On the next page insert the GET:
<?php
$acao = $_GET['inst'];
$acao2 = $_GET['sala'];
$acao3 = $_GET['ano'];
$acao4 = $_GET['mes'];
$acao5 = $_GET['diahora'];
?>
When I update the site and click on the button accuses errors
Notice: Undefined index: Internet, room, year, month and day
What might be going on?
If you can send the GET of the checkbox without using form, only by button, it can also be because they are not logged in users, only visitors of the site.
When I send the separate data everything works. The problem is when I want to send the checkbox data together with the button data. There’s the general error.
– ufrrj99