0

Php-server

Friends, I have a question I add the php code to the form action and run html on Apache in Ubuntu, but when I submit it gives a Page not found error. Why?

1st Sep 2020, 6:24 PM
Mohammad Sajjad
Mohammad Sajjad - avatar
4 Réponses
+ 1
The question would be the path. This can be checked if the file is in the same directory as the other . Then its name is enough as a link.
1st Sep 2020, 6:39 PM
JaScript
JaScript - avatar
0
JaScript there is no file and it is just a line of code. <? php echo htmlspecialchars($_SERVER["php_SELF"]); ?>
1st Sep 2020, 6:42 PM
Mohammad Sajjad
Mohammad Sajjad - avatar
0
Mostafa Sarmad unfortunately I am not a psychic. Without your attempt code cannot be said anything.
1st Sep 2020, 7:35 PM
JaScript
JaScript - avatar
0
By the way this full statement looks like as follows: <form action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]);?>" method="get">
1st Sep 2020, 8:03 PM
JaScript
JaScript - avatar