Can I edit my message on the message board?

PHP-Message Board Help?

  • I am just trying to start php -also any tutorials recommended- and I am trying to make a message board for practice. It works but when I type something new the previous message goes away. I understand why this happens just dont know how to fix it... I have a html file and a php file index.html- <!DOCTYPE html> <html><body> <h4><u>Message Board</u></h4> <form action="myfirstfile.php" method="post"> <input name="message" type="text" /> <input type="submit" name="formSubmit" value="Submit" style="height: 0px; width: 0px; border: none; padding: 0px;" hidefocus="true" /> </form> </body> </html> myfirstfile.php- <?php include 'index.html'; $message = $_POST['message']; echo "$message"; ?>

  • Answer:

    You should be more specific . And what I get from your question is you input a message it displays then again you input a message the older one goes away and the newer one is displayed . Look this cant be done only with PHP i am not sure but may be you can but it requires a mySQL database to hold stuff and display it . visit -> developphp.com and phpacademy.com > for great tutorials Now how you do this is I wont be writing the code but when you post the message it goes to the mySQL database and gets stored there then you pull the data outta there and display it on the screen . With certain parameters like DESC and LIMIT 1 . if you are a noob you wont get these but thats how its done .

UMM at Yahoo! Answers Visit the source

Was this solution helpful to you?

Related Q & A:

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.