Re: Beginner Questions regarding Mail and Forms

From: Date: Mon, 12 Feb 2007 13:21:56 +0000
Subject: Re: Beginner Questions regarding Mail and Forms
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-248757@lists.php.net to get a copy of this message
Matthias S. wrote: > hi zoltan, > > thanks for your reply. i've tried the -f switch but the only effect it has > is an error message ;) > > Warning: mail() [function.mail]: SAFE MODE Restriction in effect. The fifth > parameter is disabled in SAFE MODE. which another way of saying 'my hosting env sucks' - but that's besides the point. (short story: 'safe mode' isn't) > > as for the age value: > it is simply incorrect because it is always empty... input might be for > example 25, but the var $age contains always an empty string. > > Can you help? I'm a programmer (C++) so the concept of debugging code should not be new to you. so hello to print_r(), var_dump() and echo - they are your friends. e.g. stick the following at the top of your script (to start with): var_dump( $_POST['_txtAge'], $_POST ); my guess is your form element name and post array key are not identical.

« previous php.general (#248757) next »