Hi guys, before I start I wanna apologize for my english. I'm from Czech Rep and I cant speak English very well.
anyway, What i need is little help with Radio input. I want make something like 'ordering script'. on order.html costumer choose things he wants to buy and on for example form.php it show to him summary, what he chosed and how expensive his order is.
I have this in order.html
<input type="radio" required name="item" value="200$" onclick='check_value(this, 1)' />
<input type="text" name="NameOfItem" value="Name1" hidden />
<input type="radio" required name="item" value="250$" onclick='check_value(this, 1)' />
<input type="text" name="NameOfItem" value="Name2" hidden />
(onclick='check_value(this, 1)' is javascript counting system so its irrelevant)
(of course I have more than one option)
And in form.php i have:
<? echo $_POST["item"]; ?>
<? echo $_POST["NameOfItem"]; ?>
I guess this whole idea with hidden text connected to radio input is wrong. But how can i do it ?.
Simply i want this :
• Thing 1 - 200$
• Thing 2 - 250$
• Thing 3 - 500$
and when he chose for example thing 2 and click to submit on form.php will be :
You chose Thing 2 for 250$
I hope you guys understand me and im sorry for my english again.
thanks for any help