firedrop84 Posted March 19, 2006 Share Posted March 19, 2006 Hello Everyone! I am developing a website that I use PHP and I am new into it. I have a form that the browser will enter the details into it. I wanted it after that to store all the details into a database. I was reading some books for PHP and I already figured out how to do that.based on the book that I read. It says I should seperate the PHP and HTML into different files and this is what I done but the problem that I am facing of that that when I click on submit button it goes to the php and shows empty screen. all the html code for the form is into a file .html and then I used the action= to the php file.do anyone knows how can I solve this problemI would really approciate that.Regards,firedrop Quote Link to comment Share on other sites More sharing options...
AV1611 Posted March 19, 2006 Share Posted March 19, 2006 As stated, either the book is wrong, you you misunderstood what the book told you...You would create the PHP file that handles your form, then after it is finished, you may add your HTML to the same page to either display a result, or redirect them somewhere else, or whatever...One of a millions things you can do...please ignore any syntax errors...[code]<?php// Process your form?><HTML><body><h1> Your form has been submitted. Please click the button below to continue...</h1><form name = "DONE" action="nextpage.html"><input type="button" ></form></body></HTML>[/code] Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.