jjjhbj111 wrote:
> Question: I have been starting my error checking like
this, is it still
> compatable for my upgrade
> $MM_flag="MM_insert";
> if (isset($_POST[$MM_flag])) {
Yes.
> Should it be e.g.
> $idu = trim($_POST['idu']);
> if ($idu) < 0 {
> $errors[] = 'Select Industry';
No. The format you're already using is correct.
> Is this the future?
Unless you are using object-oriented code, the differences
between PHP 5
and PHP 4 are virtually zero. Well-written PHP 4 code will
usually run
without problem on PHP 5. All Dreamweaver generated code
since
Dreamweaver MX 2004 is fully compatible with PHP 5.
Code created in Dreamweaver MX (DW 6 and 6.0.1) is not fully
compatible.
--
David Powers, Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/