I use the curl API method to get JSON data and then paste it into an HTML table for my web application.
My needs have changed a bit, and I now need to look for several ticket numbers in one search. Here is what I have at the moment.
<form action="http://-withheld-/shop/ticket.php" method="GET">
<input type="text" name="id" placeholder="Search by TicketID" required="required"><br>
<button type="submit">Search</button><br>
I tried to add more fields, but to no avail.
t)
<input type="text" name="id1" placeholder="Search by TicketID" required="required"><br>
<input type="text" name="id2" placeholder="Search by TicketID" required="required"><br>
<input type="text" name="id3" placeholder="Search by TicketID" required="required"><br>
Oh, and also here is the php part of my code that currently works when getting the identifier of one ticket when searching.
if(isset($_GET['id'])) {
$id = $_GET['id'];
}
I tried to add more fields with my above HTML code and this code below:
if(isset($_GET['id'])) {
$id = $_GET['id1'];
$id = $_GET['id2'];
$id = $_GET['id3'];
}
.. - , . , , - $_GET. , , MYSQL.
!