Hello,
My project consists of ... having a form with a select. This select has:
<form action='/paypoints.php' method='post' id='coin_form'>
<select name='payer_amount' class='form-control' required>
<option value=''>- Escolher Valor -</option>
<option value='2'>3 Pontos - 2 moedas</option>
<option value='4'>6 Pontos - 4 moedas</option>
<option value='8'>12 Pontos - 8 moedas</option>
<option value='16'>24 Pontos - 16 moedas</option>
<option value='32'>50 Pontos - 32 moedas</option>
</select>
<input type='submit' name='paycoin' class='btn btn-primary-filled btn-left btn-newsletter btn-rounded inside' value='Trocar Moedas'/>
</form>
My plan is to check through Foreach or Other ... The requested value, example "15". Okay ...
I want is .. That check the Select and if the value is ... 1 it automatically goes bsucar 15 ... If it is 2, will bsucar 25 ..
Is there any way to accomplish this through Foreach or others ...
Sample code:
//Se valor for 2
if($ads_selected == 2) {
//realiza algo... para o 2.
}
I would like to get a While, Foreach seila .. Well I will always have to do the same code for all values ... and a single code would save a lot.