Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PHP] Check index #422

Open
IGLOU-EU opened this issue Nov 30, 2020 · 1 comment
Open

[PHP] Check index #422

IGLOU-EU opened this issue Nov 30, 2020 · 1 comment

Comments

@IGLOU-EU
Copy link
Contributor

Hi,
a simple PHP index notice error.
Checking POST index before using it can be a good practice.

Using a function to do that like get_post('couleur') ?

Error ouput:

[Mon Nov 30 19:33:18 2020] PHP Notice:  Undefined index: nom in /tmp/oressource/moteur/type_poubelles_post.php on line 30
[Mon Nov 30 19:33:18 2020] PHP Notice:  Undefined index: couleur in /tmp/oressource/moteur/type_poubelles_post.php on line 30
[Mon Nov 30 19:33:18 2020] PHP Notice:  Undefined index: description in /tmp/oressource/moteur/type_poubelles_post.php on line 30
[Mon Nov 30 19:33:18 2020] PHP Notice:  Undefined index: masse_bac in /tmp/oressource/moteur/type_poubelles_post.php on line 30
[Mon Nov 30 19:33:18 2020] PHP Notice:  Undefined index: nom in /tmp/oressource/moteur/type_poubelles_post.php on line 35
[Mon Nov 30 19:33:18 2020] PHP Notice:  Undefined index: description in /tmp/oressource/moteur/type_poubelles_post.php on line 35
[Mon Nov 30 19:33:18 2020] PHP Notice:  Undefined index: masse_bac in /tmp/oressource/moteur/type_poubelles_post.php on line 35
[Mon Nov 30 19:33:18 2020] PHP Notice:  Undefined index: couleur in /tmp/oressource/moteur/type_poubelles_post.php on line 35
@darnuria
Copy link
Contributor

darnuria commented Dec 7, 2020

hmmm Faire de la validation ça serait mieux XD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants