0
I’m creating a form that has a field that way:
<form name="form1">
<select name="cmbitens.99">
<option value="item 1">item1</option>
<option value="item 2">item2</option>
<option value="item 3">item3</option>
</select>
</form>
Man name
in the form has "." (It needs to be this way because I am using, that same name in a Google application) when I load this field in PHP it does not inform me the value of the field.
<?php
$valor = $_POST['cmbitens.99'];
echo $valor;
?>
I’m not getting around this obstacle, someone can help me ?
But you’re not using
POST
on your form. There was no missing onemethod="POST"
there?– Woss
I just gave an abbreviated here not to get too long the text, but in my code has the Post method. <form name="Form1" method="post" > <select name="cmbitens.99"> <option value="item 1">item1</option> <option value="item 2">item2</option> <option value="item 3">item3</option> </select> </form>
– Bruno César Fernandes
And what is the result of
var_dump($_POST)
?– Woss
var_dump gave the solution tbm, I just needed to exchange "." for "_" in my php... Thanks
– Bruno César Fernandes