HTML Form - How do I ensure a word I have searched for remains in the search box? -


in form (eg. search box), 1 @ top right of page, when write word , press enter, can see search results on page, word have searched remains in box too. can tell me attribute is? can't find one. aware "placeholder" word 'search' in box before search carried out, how ensure searched word stays in box after word searched , not disappear? thank you!

https://stackoverflow.com/search?q=sea

where q request parameter. can access server side scripting.

suppose php it's: $_get

echo $_get['q'];//sea 

you can't simple html. if aren't using serverside scripting can javascript:

read how can query string values in javascript?


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -