How to make: written text in field, to be saved and shown and after refresh!

Discussion in 'Programming' started by tonyhlav, Nov 22, 2012.

  1. #1
    Hello,

    i want to make website where i can write text, press on submit button and after refresh the text to be shown on the website! (Just That)

    Help pls! :)
     
    tonyhlav, Nov 22, 2012 IP
  2. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #2
    If you mean after the submit button is pressed, you can use AJAX to submit (the page won't change) or you can submit and use the PHP file you submit to, to create the page with the new data.

    If you mean after the user clicks Refresh in his browser (or presses F5), use a cookie.
     
    Rukbat, Nov 22, 2012 IP