Re: Confusing POST behavior -- doing it twice?




"Erwin Moller"
<since_humans_read_this_I_am_spammed_too_much@xxxxxxxxxxxxxxxx> wrote in
message news:42ee2e06$0$11061$e4fe514c@xxxxxxxxxxxxxxxxx
> Shelly wrote:
>
>> (posted previously on comp.lang.php but no response received.
>> Cross-posted in the dreamweaver forum)
>>
>> I am confused about what goes on with method POST. Here is an overview
>> of
>> a my code, sketching it out:
>>
>> <?php
>> if (isset($_POST['Submit']) && $_POST['Submit']=="Submit") {
>> ---Do a bunch of stuff---
>> if (isset($_SESSION['Error'])) unset($_SESSION['Error']);
>> if (strcmp($A, "any") {
>> // Verify that a Zip code is numeric and is five digits
>> If (!is_numeric($_POST'['zip']) strlen($_POST['zip']) != 5) then
>> {
>
> Hi,
>
> Shouldn't this be:
> $_POST["zip"] instead of $_POST[$zip] ??

Yes, it is 'zip' and, yes, there is a "zip" control. I just typed wrong in
entering it here. I corrected it above and further corrected my typing of
this post to "[" instead of "(".

Shelly



.



Relevant Pages