Skip to content
Advertisement

How to show a php radio input value on a php email?

I have a php form with 4 radio inputs as below:

JavaScript

When one of the radio buttons is checked, how can I show its value (e.g. pos) to the email I send?

The email is like below. What should be my code to show the radio button choice?

JavaScript

Advertisement

Answer

After form is submitted, get the radio button value from $_POST array;

JavaScript

Use $payment_method to show the value of the radio button that is selected.

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement