Basically I need help creating some PHP code. This will require a MySQL database.
What I want to do is, on the homepage there to be a simple HTML text box and ANYONE can enter text into it, once the text is entered, they click submit. (for example "testing" is entered into the text box) This text box doesn't need any type of captcha or admin verification and the text WILL be stored forever. Once the text "testing" is submitted, it is inserted into the database into 2 tables, "content" and assigned a number in the "ID" table, naturally every time new text is entered, it is assigned a new ID, going up by 1.
Once this has been done, upon clicking "submit" on the text box, it takes you to a new page created with the text on the page that you have just submitted (in this case "testing" will be on the new page) (example URL - http://example.com/page.php?id=1 will contain the text in the "content" table, which is assigned with the "ID" 1, and http://example.com/page.php?id=2 will contain text that has been submitted from the "content" table, with the "ID" 2 )
So there will be 2 pages:
Index.php (will contain the HTML text box that submits text entered, into the database.
Page.php (Will contain text from the database, that has previously been submitted by people, text will be found by entering the "id" to the end of the URL e.g http://example.com/page.php?id=1 from the database, which the text will have previously have been assigned when submitting the text in the first place, in this example it would of been the text "testing".
Sorry it's a lot of text, I tried to explain it as best as possible.
Any help will be massively appreciated.
Feel free to ask any questions.