1
I’m making a form to send some data to the bank, to expedite a process, my question is the following, I have 5 systems that I need to update, so I made a select
html.
I need to send each option
of select
for a different bank table, for example, if I select the "System 1" he goes to the table "System 1" on the bench, if it is "System 2" on the table "System 2" and so on, in each table would have the same fields only would change the name, then I list it on another screen of the site.
What would be the simplest way for me to do this in PHP ?
<div class="form-group">
<form action="envia.php" method="post" enctype="multipart/form-data">
<div class="form-group">
<label class="col-sm-3 control-label"><b>Sistema</b></label>
<div class="col-md-10">
<select name="sistema" class="form-control" required/>
<option>Escolha o sistema que deseja importar</option>
<option value="sis1">Sistema 1</option>
<option value="sis2">Sistema 2</option>
<option value="sis3">Sistema 3</option>
<option value="sis4">Sistema 4</option>
<option value="sis5">Sistema 5</option>
<option value="sis6">Sistema 6</option>
<option value="sis7">Sistema 7</option>
</select>
</div>
</div>
Leave the name of the dynamic table in the query. Then it will insert in the table chosen by select
– Lindomar
Can you give me an example of how to do this ? Just so I have a search base
– lucasecorrea