Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    May 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Disable button on click for payment processor

    Hi guys I'm a little stuck here, I am working on a CakePHP 1.2 based website and need to disable a form from submitting once clicked.
    Code:
    <fieldset>
    			<?php
    				echo $form->input('User.card_number', array('label' => __('Card Number', true)));
    				?><div class="hint"><?php __('The credit card name must match the name on the billing address.');?></div><?php
    				echo $form->input('User.card_type', array('type' => 'select', 'label' => __('Type', true), 'options' => $typeOptions));
    				echo $form->input('User.expiration_month', array('type' => 'select', 'label' => __('Expiry Month', true), 'options' => $monthOptions));
    				echo $form->input('User.expiration_year', array('type' => 'select', 'label' => __('Expiry Year', true), 'options' => $yearOptions));
    				echo $form->input('User.security_code', array('label' => __('Security Code', true)));
    				?><div class="hint"><?php __('This is the 3 digit code at the back of the card.');?></div><?php
    				echo $form->input('User.store_cc', array('label' => __('Securely store your billing details?', true), 'checked' => 'checked'));
    				echo $form->end(__('Confirm Purchase * >>', true));?>
    			</fieldset><?php
    				echo $form->input('User.card_number', array('label' => __('Card Number', true)));
    				?><div class="hint"><?php __('The credit card name must match the name on the billing address.');?></div><?php
    				echo $form->input('User.card_type', array('type' => 'select', 'label' => __('Type', true), 'options' => $typeOptions));
    				echo $form->input('User.expiration_month', array('type' => 'select', 'label' => __('Expiry Month', true), 'options' => $monthOptions));
    				echo $form->input('User.expiration_year', array('type' => 'select', 'label' => __('Expiry Year', true), 'options' => $yearOptions));
    				echo $form->input('User.security_code', array('label' => __('Security Code', true)));
    				?><div class="hint"><?php __('This is the 3 digit code at the back of the card.');?></div><?php
    				echo $form->input('User.store_cc', array('label' => __('Securely store your billing details?', true), 'checked' => 'checked'));
    				echo $form->end(__('Confirm Purchase * >>', true));?>
    			</fieldset>
    Anyone got any ideas to overcome this? Thanks!
    Last edited by leewoi90; 05-23-2012 at 06:42 PM. Reason: Forgot to finish writing.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •