0

PHP form to email help

Hi guys. I’m struggling with a bit of PHP code. Everytime I try to test the form on the website it just sends me straight to the php code. Is this supposed to happen or is there something wrong with the code? I got it from an open source website as I don’t know much about PHP. I plan to learn it but I can’t at the moment and I have to get a website live soon😅 I would appreciate any help please!! The code also looks like it has verification capabilities but as I said, I’m not too sure. Please see the code and help where you can! Please please please!! https://code.sololearn.com/w55zxZ20Xzyz/?ref=app

13th Oct 2018, 5:56 PM
Byron Cross
6 odpowiedzi
+ 2
You mean that you can see the source code in your browser? Every time a form submits it redirects you to the targeted file.
13th Oct 2018, 6:15 PM
Toni Isotalo
Toni Isotalo - avatar
+ 2
How are you viewing it? You need to host it with apache.
13th Oct 2018, 6:25 PM
Toni Isotalo
Toni Isotalo - avatar
+ 2
xampp or mamp
13th Oct 2018, 7:29 PM
Toni Isotalo
Toni Isotalo - avatar
0
@toni Yes
13th Oct 2018, 6:24 PM
Byron Cross
0
I've just been opening it in Chrome. I'll give Apache a try. Thank you
13th Oct 2018, 6:28 PM
Byron Cross
0
@toni It looks like ive activate apache, i do the whole localhost on google and it brings up the It Works page but what now? sorry for the ignorance...
13th Oct 2018, 7:28 PM
Byron Cross