Skip to content
← Back to Community
action_page.php download instead of running
Profile icon
JDB1
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>repl.it</title> <link href="style.css" rel="stylesheet" type="text/css" /> </head> <body> <script src="script.js"></script> <form action="action_page.php" target="_self" method="post"> Username: <br><input type="text" name="UsrNme"><br> <input type="submit" value="Play"> </form> </body> </html>

So this is my html index, I have a seperate action_page.php but instead of running the code it always tries to download it to my pc?

Answered by Vandesm14 [earned 5 cycles]
View Answer
Voters
Profile icon
JDB1
Comments
hotnewtop
Profile icon
Vandesm14

This is because replit does not support php in HTML repls. If you want a backend, use nodejs instead.

Please upvote this comment if it helped you in any way

Profile icon
husseingaming1

@Vandesm14 it does the same thing in node.js it downloads isnted of running so if you know anything that i can do please tell me