04-04-2017, 11:24 PM
It sounds like you are getting an error from your query, and since it is printing out the error text before your HTML it is throwing off your page. Your current query is binding the parameters before you set the variables, so if you move your variables up before the binding it should work.
https://pastebin.com/rDt9MQ8C
I also included an example of using the Input class to grab your variable out of $_POST. It sanitizes it so it's safe to display, insert into database, etc.
Test this out and let me know how it goes!
https://pastebin.com/rDt9MQ8C
I also included an example of using the Input class to grab your variable out of $_POST. It sanitizes it so it's safe to display, insert into database, etc.
Test this out and let me know how it goes!