PHP
Config error at my output page
Login To Post Your Comment
3 comments
Manfred Lim
4 years agoIn that case, for non-compulsory field on output.php should also have the code to set all variables as a blank field.
Mike Hunt Is Bald
4 years agoI have already did that , on my index page no more error message but after i go into output leaving non compulsory are blanks i get the error. This is my code in my index page.
<code>
$name = "";
$email = "";
$phone = "";
$age = "";
$website = "";
$comment = "";
</code>
Manfred Lim
4 years agoHi Mike Hunt,
This error happens because those variables are empty.
As those are optional fields, what could be done is to set all variables to "empty" at the start of the page, and it should solve the issue.
$userName = $userEmail = $userPhone = $userWebsite = $userAge = $userGender = $userComment = "";