Need help with website php contact form


#1

Hi, i’ve made a simple contact form for my website but it doesn’t seem to work at all, i tried using a js form but same results??
can i have some help with it???
the contact html file is in contact.html and the php code is in mail/contact.php and the js form is in js/form.js


#2

let me know if u can help so i dm u with the invite url


#3

quick update i keep gettings method not allowed
but glitch staff told me that php is supposed to be supported in my older questionimage


#4

Let us know the project name and we’ll take a look. If your project is private, either make it public temporarily or DM me a join link so we can view the code. Thanks.


#5

Looking at your project, you don’t have any code telling the project to use PHP. By default all projects on Glitch use node.js instead. I’ve linked you to these examples before, but if you remix from https://glitch.com/~lamp-poc or https://glitch.com/~php-poc depending on what’s most suitable for your project, then you can get it to use php instead.


#6

php kinda confuses me cus im not used to code with it at all, is it possible you help me enable php for my project???


#7

I’ve DMed you a link to a version of your project using PHP.

Note that the server doesn’t have SMTP available to send mail using PHP’s default mail function. Look into using something like PHPMailer using Gmail SMTP details or another third-party like Mailgun, which has a free plan.


#8

Ok! thx for the help