PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Please i am in need of great help. I have an html form which have drop down menu, checkboxes, textfields, etc.. I have a php script also which does all the processing just one php file which takes the variables and then insert it in the database. I have 2 buttons in my form reset and submit. for some reason after entring all the fields and clicking on submit i recieve a blank page. When i check my database nothing is updated. whats the problem? I have a php file which includes 2 more files header and footer files. and i am using this action attribue
<body>
<form action="http://localhost/login1.php" method = "post" >
.
.
.
<input type = "reset">
<input type = "SUBMIT">
Please tell me if i am doing the right thing. I am using easy php and both of my html files and php file is in www folder. why is it not updating the database? The file is huge thats why i am not posting.
It's impossible for us to say what's wrong without seeing your code. I would suspect your code looks for a submit button where there is none to be found. Your buttons don't have names.
If memory serves, it's supposed to be \r\n instead of \n in the headers.
I don't know if that will fix the issue or not, but I cannot recommend Swift Mailer enough.. so I think you should look into using it instead of attempting to create the email directly.