1

If I click the radio of debit_card and process payment then go to debitcard.php ,else I click the radio of credit_card and process payment then go to creditcard.php.

<form method="post" action="">
    <div class="payment_item">
        <div class="radion_btn"> 
            <input type="radio" id="f-option5" name="payment_method" value="debit_card">
            <label for="f-option5">Debit card</label>
            <div class="check"></div>
        </div>
    </div>

    <div class="payment_item active">
        <div class="radion_btn">
            <input type="radio" id="f-option6" name="payment_method" value="credit_card">
            <label for="f-option6">Credit card</label>
            <div class="check"></div>  
        </div>
    </div>

     <input class="main_btn" type="submit" value="Process payment" style="width:100%;"/>
    </form>
B Bb
  • 11
  • 2

0 Answers0