SERocks Posted October 24, 2011 Share Posted October 24, 2011 Hi, I am creating a page to take inputted information and move it to a MySQL database. I started with a HTML page I created then was told I needed to do this in PHP. I have most everything created but am missing something to tie it to the data base I think. I need some input on which is the better way to do this, with an Html page or the PHP page. Then what am I missing to get the information to show up in the database? Not sure configuration is loading to connect it to the DB. When testing on my machine I got no error but do now it is on the server. You may find the files stored here for viewing.www.ntains.com/Quotes/NTAQot.phpwww.ntains.com/Quotes/NTAQuote.htmlAny other info you might need please contact me.Any pointers to remove the errors and help my get this running would be great. This is the last step in their project and I would like to tie it up.Your assistance is Greatly appreciated. Attached are copies of the files in case you need to see them. Contact me for the php file NTAQuote.html Link to comment Share on other sites More sharing options...
justsomeguy Posted October 24, 2011 Share Posted October 24, 2011 Plain HTML isn't an option if you need to connect to a database, only a server-side language like PHP can work with the server. What errors are you getting? It would help if you post the code for the PHP file. Link to comment Share on other sites More sharing options...
Krewe Posted October 25, 2011 Share Posted October 25, 2011 #1 Could you post the code from the .php form? The Form the people will input data. Like JSG asked.#2 Your form can be a pure .html file HOWEVER you will have to send that form to a .php file that will process it.Ex: <form action="aphpfile.php" method="post">.....</form> In that .php file you will have to retrieve all the input data then send it too the MySQL database. Link to comment Share on other sites More sharing options...
Krewe Posted October 25, 2011 Share Posted October 25, 2011 #1 Could you post the code from the .php form? The Form the people will input data. Like JSG asked.#2 Your form can be a pure .html file HOWEVER you will have to send that form to a .php file that will process it.Ex: <form action="aphpfile.php" method="post">.....</form> In that .php file you will have to retrieve all the input data then send it too the MySQL database (or what ever database system you use). Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.