Hi. I have a form on my site that needs a credit card transaction to register. I setup the merchant account to do transaction but then I am having problem capturing the detail from the textbox. In my form I have a "credit card information" fieldset and another fieldset for the "contact information". In my "contact information" fieldset I have a checkbox. In that checkbox I created a function in Javascript to transfer all information from the "credit card information" to the "contact information" textboxes when they check the checkbox. In other words, it disable the textboxes in my contact form field and transfer all information there.
My problem is, when I do the test and submit to my merchant account, the textbox don't capture anything. Here is my code:
<label><input name="contact" class="checkbox" type="checkbox"
value="<?php safeEcho($form['contact']); ?>"
onclick="contactSameAsBilling(this.checked);" />
Please check if billing information is same as contact information</label>
<div class="formfield <?php echo highlight('contact_firstname');?>">
<label for="contact_firstname">First Name:<b style="color:#FF0000">*</b></label>
<input id="contact_firstname" name="contact_firstname" class="text" type="text" value="<?php safeEcho($form['contact_firstname']) ?>" />
<?php helper_error('contact_firstname'); ?>
</div>
<div class="formfield <?php echo highlight('contact_lastname');?>">
<label for="contact_lastname">Last Name:<b style="color:#FF0000">*</b></label>
<input id="contact_lastname" name="contact_lastname" class="text" type="text" value="<?php safeEcho($form['contact_lastname'])?>" />
<?php helper_error('contact_lastname');?>
</div>
Any idea? Please help and hoping to hear from you as soon as possible. Thank you so much.