1
I have a code that receives the data via $_POST
on a form as follows:
...
$certificate = $_POST['certificate'];
...
If you make a print_r($certificate)
the result is as follows:
Array (
['cliente'] => White Martins Gases Industriais Ltda
['entrega'] => 2017-04-11
['utilizacao'] => Oxigênio
['norma'] => White Martins - PR029
)
The fields in the form are as follows:
<select type="select" class="form-control" name="certificate['cliente']" id="cliente">
<input type="date" class="form-control" name="certificate['entrega']" id="entrega">
<select type="select" class="form-control" name="certificate['utilizacao']" id="utilizacao">
<select type="select" class="form-control" name="certificate['norma']" id="norma">
How to assign the values of this array to 4 separate variables, type:
$cliente = ????;
$entrega = ????;
$utilizacao = ????;
$norma = ????;
I don’t know how to access the array.
The fields in the form are as follows: <select type="select" class="form-control" name="Certificate['client']" id="customer"> <input type="date" class="form-control" name="Certificate['delivery']" id="delivery"> <select="select type" class="form-control" name="Certificate['usage']" id="usage"> <select type="select" class="form-control" name="Certificate['norm']" id="norm"> but I can’t access it at all.
– Flávio Kowalske
I can’t access the indexes...
– Flávio Kowalske