Re: Confusing POST behavior -- doing it twice?
- From: "Shelly" <sheldonlg.news@xxxxxxxxxxxxxxxx>
- Date: Mon, 01 Aug 2005 14:31:32 GMT
"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
.
- Follow-Ups:
- Re: Confusing POST behavior -- doing it twice?
- From: Shelly
- Re: Confusing POST behavior -- doing it twice?
- References:
- Confusing POST behavior -- doing it twice?
- From: Shelly
- Re: Confusing POST behavior -- doing it twice?
- From: Erwin Moller
- Confusing POST behavior -- doing it twice?
- Prev by Date: Re: Confusing POST behavior -- doing it twice?
- Next by Date: Re: Confusing POST behavior -- doing it twice?
- Previous by thread: Re: Confusing POST behavior -- doing it twice?
- Next by thread: Re: Confusing POST behavior -- doing it twice?
- Index(es):
Relevant Pages
|