Hello,
I am new to php. I have created an html form where the user selects any one option from the radio button. Every option has a price that user will be paying if he orders. What I want is to send that price to the user as auto generated mail when the user submits the form. My html is as follows:
<input type=”radio” name=”grade” class=”form-control” required><img src=”images/grade_2.png” alt=”no image”>
<input type=”radio” name=”grade” class=”form-control” required><img src=”images/grade_3.png” alt=”no image”>
<input type=”radio” name=”grade” class=”form-control” required><img src=”images/grade_4.png” alt=”no image”>
<input type=”radio” name=”grade” class=”form-control” required><img src=”images/grade_5.png” alt=”no image”>
<input type=”radio” name=”grade” class=”form-control” required><img src=”images/grade_6.png” alt=”no image”>
<input type=”radio” name=”grade” class=”form-control” required><img src=”images/grade_7.png” alt=”no image”>
For example, if the user selects the third option and the price is 5000, then the user gets the mail that “The cost for the option you have selected is 5000.”
I am not been able to write the php code for this. Please help me. Also I want to send these images to the receiver in mail when the user submits the form. How can I do this?
Thanks.
Regards
Saxena