This is stupidly simple, but I can't figure out why I constantly get the error msg here, it looks right and works right in other applications....is this due to the "0" zeros? It shouldn't be because it's returning the error before it gets to any of the other stuff, pls help! been staring at this so long Im getting to that "can't see the forest from the trees" point.
PHP
<?php
if(empty($_POST['Contact0FirstName']) || empty($_POST['Contact0LastName']) ||
empty($_POST['Contact0Email']) || empty($_POST['Contact0Phone1']) ||
empty($_POST['CaptchaInput']) || !empty($_POST['LeadBlind'])) {
echo "Please fill out all fields marked *";
die();
} else {
//curl stuff
}
?>
and the form
<form id="Lead" method="post" action="PHP/Lead.php" accept-charset="UTF-8">
<ul id="LeadForm">
<li>*required field</li>
<li>
<input type="hidden" name="LeadBlind" id="LeadBlind">
<label for="Contact0FirstName">1| First Name*</label>
<label for="Contact0LastName">2 | Last Name*</label>
<label for="Contact0Email">3 | Email*</label>
</li>
<li>
<input type="text" name="Contact0FirstName" id="Contact0FirstName">
<input type="text" name="Contact0LastName" id="Contact0LastName">
<input type="text" name="Contact0Email" id="Contact0Email">
</li>
<li>
<label for="Contact0Phone1">4| Daytime Phone*</label>
<label for="Contact0Phone2">5| Evening Phone</label>
<label for="CaptchaInput">6| Please enter the code</label>
</li>
<li>
<input type="text" name="Contact0Phone1" id="Contact0Phone1">
<input type="text" name="Contact0Phone2" id="Contact0Phone2">
<input type="text" class="numbers" name="Captcha" id="Captcha" value="" readonly>
<input type="text" class="numbers" name="CaptchaInput" id="CaptchaInput" size="6" maxlength="6">
</li>
<li>
<input type="submit" id="LeadSend" value="Try It Now!">
<span id="processing">Submitting Your Request</span>
</li>
<li class="text">You will get 30 days of NinjaTrader + Rithmic (the data feed) to experience how trading should really be.</li>
<li class="text"><a href="mailto:[email protected]?subject=Trader's Platform Support Request">Email Support</a> or call 800 771 6748 (Optimus Trading Group)</li>
</ul>
<div class="clear"></div>
</form>
In firebug, it shows the fields getting passed, with a value, but I get the "Please fill out all fields marked *" error returned.