0
My PHP form is not working...
I made a form in html and set the action to a php file(the one below) and every time I click submit instead of actually doing what I programmed it literally takes me to the php document where all the code is, like below which is my code: <?php $name = (int)$_POST["name"]; echo"$name"; $email = (int)$_POST["email"]; echo"$email"; $message = (int)$_POST["message"]; echo"$message"; ?>
8 Answers
+ 2
Oh it means itâs not executing it and you should check your apache installation. You may need to enable php. Depends on what you are using. You may need to install php separately.
+ 1
It should take you to the page ...
+ 1
okay thanks!
0
no but instead of showing the user all my code it should just show the âecho â$nameâ;â for example
0
oh okay I probably installed the wrong php package for vscode.. Do you know what i have to install? I have a mac?
0
try echo without quotes "
0
okay ill try that but i think i may have installed php wrong
0
just go with YouTube and search which is good for your mac