Record Radio Button Mysql PHP

0

I have a system in PHP, JavaScript and MYSQL where the person assembles his request ...

Link to the site

It's working correctly, but I need to pass data to a report and I do not know how to do it ...

Ex. Size 06x08 - Oval - Without Frame ...

In the radio input of each item, the value is set to the value of each part.

So I can not pass via POST or GET what the client's choice is ...

It only gives me the values

Ex. of an input radio

<input type="radio" value="10.00" name="moldura" id="btn_medida02_oval_sm">
    
asked by anonymous 19.09.2017 / 05:28

1 answer

1
  

How can I pass the price, without using the value of the radio button?

Create an input to type hidden, or several if it becomes easier to understand.

<input type="hidden" name="campo_oculto" value="">

And in the click event you add the values in the input hidden.

$(function(){
    $('#id_onde_vc_clica').click(function(){
        $('#id_do_campo_hidden').val($('#id_onde_esta_o_valor').val());
    });
});

If the value is this way, within the value attribute:

<input type="hidden" name="campo_oculto" id="teste" value="informacao aqui">

You use val to get the value

$('#teste').val();

But if the value looks like this:

<span id="teste">informacao aqui</span>

You use text, to get the value:

$('#teste').text();
    
19.09.2017 / 14:13