ik heb deze code toegevoegd in mij contact-form:
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
wanneer ik heb de contact form ingevulled en submit button geklikt ik krijg de home pagina en de email wordt niet verzonden.
ik zie deze uitlegging over deze code in w3school:
The $_SERVER["PHP_SELF"] is a super global variable that returns the filename of the currently executing script.
en plus deze uitlegging :
he htmlspecialchars() function converts special characters to HTML entities. This means that it will replace HTML characters like < and > with < and >. This prevents attackers from exploiting the code by injecting HTML or Javascript code (Cross-site Scripting attacks) in forms.
mij vraag is nu :
wat is het fout hier dat ik krijg home pagina plus mij email wordt niet verzonden?
is er een oplossing voor deze probleem ? of ik moet negeren deze code helemaal.
action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>">
dank u wel