NYCPHP Meetup

NYPHP.org

[nycphp-talk] Form not working as expected

mikesz at qualityadvantages.com mikesz at qualityadvantages.com
Fri Mar 14 01:41:57 EDT 2008


Hello Rolan,

Friday, March 14, 2008, 1:30:36 PM, you wrote:


> Correction:

> if ($POST['year']) {
>    
> $_POST['birthdate']=$_POST['year'].'-'.$_POST['month'].'-'.$_POST['day'];
> }

Thanks Rolan,

I appreciate the suggestion.

For some reason that variable is not getting updating even with your
suggestion. The print_r results just before the $ret =
ob_get_contents(); are as follows:

Array
(
    [ID] => test
    [Password] => test
    [birth_trial] => 1
    [birthdate] => --
    [year] => 1933
    [month] => 01
    [day] => 01
)

If I enter the input again, it works perfectly. Because it redirects
to another page, it clears the $_POST array so I can't check what was
in it to cause it to work?

Thanks for the idea anyway.



-- 
Best regards,
 mikesz                            mailto:mikesz at qualityadvantages.com




More information about the talk mailing list