![]() |
|
[PHP] Submit button not working inside template - Printable Version +- Hack Forums (https://hackforums.net) +-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444) +--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151) +---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183) +---- Thread: [PHP] Submit button not working inside template (/showthread.php?tid=5819754) |
Submit button not working inside template - FaberCastell - Apr 2, 2018 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? RE: Submit button not working inside template - ThomasGB - Apr 2, 2018 come online on jabber or skype we will try to fix this together RE: Submit button not working inside template - ✔ Soufian ✔ - Apr 2, 2018 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"? RE: Submit button not working inside template - Nachfolger - Apr 2, 2018 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. RE: Submit button not working inside template - Vyxn - Apr 2, 2018 Code <form>This should be the format for it to work. The default method will be GET unless you changed it to POST (method="POST") RE: Submit button not working inside template - Sakuto - Apr 2, 2018 Let me get my cristal ball to find your problem without any code! RE: Submit button not working inside template - SIM-2223238 - Apr 2, 2018 Are you sure your file extension is .php? lmao RE: Submit button not working inside template - Nachfolger - Apr 3, 2018 (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 |