0
I have in my html a form, in it I have a field described this way:
<option value="sao-gabriel-da-palha">São Gabriel da Palha</option>
In my database I have to put the value equal to value
, so I wanted the value to come different, come as São Gabriel da Palha
and not sao-gabriel-da-palha
.
Can anyone tell me how to do this?
Here is my form:
<h3>O que você esta procurando? Digite aqui:</h3>
<form class="form-inline" action="busca.php" method="post">
<div class="form-group">
<input type="text" class="form-control" id="palavra" placeholder="Digite aqui..." name="palavra">
</div>
<div class="form-group">
<label for="cidade">Selecione a cidade:</label>
<select name="cidade" class="form-control" id="cidade">
<option value="sao-gabriel-da-palha">São Gabriel da Palha</option>
<option value="São Domingos do Norte">São Domingos do Norte</option>
<option value="Vila Valério">Vila Valério</option>
</select>
</div>
<button type="submit" class="btn btn-default">Buscar</button>
</form>
normally value is the primary key, id, code, the information that will be displayed, name, description, etc...are two columns in the database table. Ps If you are from São Gabriel da Palha, greetings capixabas, I’m from Colatina =]
– Rovann Linhalis
You are using php?
– Francisco
Yes, I am using PHP.. And yes @Rovann Linhalis from São Gabriel da Palha
– WPfan