0
PHP_SELF
Hello everybody! Im a bit newbie with php and trying to submit my form now to mysql. When the connection and the submit method is in the same file i use: action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" And everything is great! But when redirect the action to different file like: action="<?php echo htmlspecialchars($_SERVER["/send/sendIdea.php"]);?>" i get nothing, no redirect at all, no error, just refreshing my register page with the form. I was trying to type instead the path, the full URL but also no result. How can i use the htmlspecialchars in the same way like the first example but for different path then PHP_SELF and work? Thanks in advance!
1 Antwort
0
just type within the action, the php file you want to go to, and don't forget htmlentities or htmlspecialchars for security issues