404 error when calling php

Question

                <html>
                <body>
                ***<form action="abc.php" method="post">
                    First Name: <input type="text" name="firstname"><br>
                    Last Name: <input type="text" name="lastname"<br>
                    E-mail: <input type="text" name="email"><br>
                <input type="submit">
                </form>
                </body>
                </html>***

        </div>

Using page.php as the template, I added a simple html form with a call to a php file (added html code is bolded and italicized above). The form displays perfectly. However, on pressing submit I get a 404 because it can’t locate “abc.php”. The URL generating the 404 is: “https://www.example.com/index.php/phpinserttest/abc.php“. All files are are in the ../themes directory. Any ideas here ?

0
, Dahere 4 years 2019-11-03T05:54:29-05:00 0 Answers 89 views 0

Leave an answer

Browse
Browse