Simple HTML form is not working properly...
attached is a simple HTML form.
When i print the super global $_POST[] i don't get any information from the text fields.
Im really frustrated... I can't find any problem with the code...
HTML
<form method="POST" action="functions/process_payment.php" >
<table id="creditCards">
<tr>
<td><input type="radio" name="creditCard" class="CreditCard" checked value="Visa"/><img src="images/checkout/visa.png" /> Visa</td>
<td><input type="radio" name="creditCard" class="CreditCard" value="Mastercard"/><img src="images/checkout/master.png" /> Master Card</td>
<td><input type="radio" name="creditCard" class="CreditCard" value="Amex"/><img src="images/checkout/amex.png" /> Amex</td>
</tr>
</table>
<table id="paymentInfo">
<tr>
<th>Card Holder Name:</th>
<td><input type="text" name"cardHolderName" id="CardHolderName" /></td>
</tr>
<tr>
<th>Card Number:</th>
<td><input type="text" name"cardNumber" id="CardNumber" /></td>
</tr>
<tr>
<th>Card Expiry:</th>
<td>
<select name="ddlExpiryMonth" id="ddlExpiryMonth">
<option value="01">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>
<select name="ddlExpiryYear" id="ddlExpiryYear">
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
<option value="13">13</option>
<option value="14">14</option>
<option value="15">15</option>
<option value="16">16</option>
<option value="17">17</option>
<option value="18">18</option>
</select>
</td>
</tr>
</table>
<table id="buttonsTable">
<tr>
<td> <input type="image" name="processPayment" src="images/checkout/processPayment.png" width="119" height="39"></td>
<td><a href="functions/cancel_order.php"><img src="images/checkout/cancelOrder.png" /></a></td>
</tr>
</table>
</form>
PHP File
<?php
print_r($_POST);
?>
Output
Array ( [creditCard] => Visa [ddlExpiryMonth] => 01 [ddlExpiryYear] => 10 [processPayment_x] => 72 [processPayment_y] => 30 )