Index Notice
Posted: Mon Apr 12, 2004 5:09 pm
I don't know why, but here is the notice I got in my webpage:
And here is my code... is there any better way to write it? thanks.
Code: Select all
Notice: Undefined index: prenom in C:\Program Files\Apache Group\Apache2\htdocs\clients.php on line 123
Notice: Undefined index: nom in C:\Program Files\Apache Group\Apache2\htdocs\clients.php on line 124
Notice: Undefined index: adresse in C:\Program Files\Apache Group\Apache2\htdocs\clients.php on line 125
Notice: Undefined index: adresse2 in C:\Program Files\Apache Group\Apache2\htdocs\clients.php on line 126
Notice: Undefined index: ville in C:\Program Files\Apache Group\Apache2\htdocs\clients.php on line 127
Notice: Undefined index: province in C:\Program Files\Apache Group\Apache2\htdocs\clients.php on line 128
Notice: Undefined index: pays in C:\Program Files\Apache Group\Apache2\htdocs\clients.php on line 129
Notice: Undefined index: code_postal in C:\Program Files\Apache Group\Apache2\htdocs\clients.php on line 130
Notice: Undefined index: no_tel in C:\Program Files\Apache Group\Apache2\htdocs\clients.php on line 131
Notice: Undefined index: email in C:\Program Files\Apache Group\Apache2\htdocs\clients.php on line 132
Notice: Undefined index: password in C:\Program Files\Apache Group\Apache2\htdocs\clients.php on line 133
Notice: Undefined index: password2 in C:\Program Files\Apache Group\Apache2\htdocs\clients.php on line 134
Notice: Undefined variable: submit in C:\Program Files\Apache Group\Apache2\htdocs\clients.php on line 138Code: Select all
$PARAM = array_merge(
$HTTP_GET_VARS, $HTTP_POST_VARS
);
$prenom = $PARAMї'prenom'];
$nom = $PARAMї'nom'];
$adresse = $PARAMї'adresse'];
$adresse2 = $PARAMї'adresse2'];
$ville = $PARAMї'ville'];
$province = $PARAMї'province'];
$pays = $PARAMї'pays'];
$code_postal = $PARAMї'code_postal'];
$no_tel = $PARAMї'no_tel'];
$email = $PARAMї'email'];
$password = $PARAMї'password'];
$password2 = $PARAMї'password2'];