Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

PHP 

Submit button not working inside template

So basically i have a html template, this site ( http://grandetest.com/theme/jobhunt-html/contact.html )

And the problem is, when i add a simple PHP submit form, it just doesn't works. When you click on the button, nothing happens.

If i copy the same code into another standalone file, the form is submitted, but with using on the page of the template, on the click of the button, nothing happens.

I really don't understand why is it so and it's testing my nerves. Any ideas perhaps?
come online on jabber or skype we will try to fix this together
[Image: zqO2UXJ.gif]

Did you put it in a <form> tag and gave the form the attribute method="post" as well as gave the button the attribute type="submit"?
There is no form attribute. The browser doesn't do anything with a standard button tag.

Also looks like it's made to be sent over a ajax request. You should consider implementing Ajax instead, it's much better looking and it would match the material theme.

Je t'aime
[Image: fpZ5a5g.png]

(Apr 22, 2022 04:39 PM)-Scrub Wrote:  Jokes on you, I'm not smart enough to know what he's talking about.
Code
<form>
<button type="submit">Press me baby.</button>
</form>

This should be the format for it to work. The default method will be GET unless you changed it to POST (method="POST")
[Image: signaturetwo.png]
Let me get my cristal ball to find your problem without any code!
Are you sure your file extension is .php? lmao
(Apr 2, 2018 10:55 PM)Sakuto Wrote:  Let me get my cristal ball to find your problem without any code!
Click view source on here: http://grandetest.com/theme/jobhunt-html/contact.html

Je t'aime
[Image: fpZ5a5g.png]

(Apr 22, 2022 04:39 PM)-Scrub Wrote:  Jokes on you, I'm not smart enough to know what he's talking about.


Possibly Related Threads...
Thread / Author Replies Views Last Post
[Javascript]  by Facebook IncJan 18, 2026 01:44 PM 2 158 Jan 18, 2026 01:44 PM
Last Post: SIM-5724601
[PHP] by QRCodeOct 28, 2018 10:45 AM 6 242 Oct 28, 2018 10:45 AM
Last Post: Abruptum
[PHP] by KonstantinosJul 13, 2018 09:13 AM 5 213 Jul 13, 2018 09:13 AM
Last Post: Konstantinos