The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Admin Panel, Help
liammc
post Aug 24 2016, 03:21 AM
Post #1





Group: Members
Posts: 2
Joined: 24-August 16
Member No.: 24,705



Hey,

Im trying to make a admin panel so I've got the a text box which you type into and click submit and it changes on the index.html page but when I refresh the page it doesn't stay, is there away I can make it stay?

Thank you so much guys!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 24 2016, 06:56 AM
Post #2


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



Is this a login form? Then you might use a cookie to remember the user's login status.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
liammc
post Aug 26 2016, 03:56 AM
Post #3





Group: Members
Posts: 2
Joined: 24-August 16
Member No.: 24,705



this is not a form logging
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Aug 26 2016, 11:12 AM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,716
Joined: 9-August 06
Member No.: 6



Do you use JavaScript for this?
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Aug 26 2016, 03:54 PM
Post #5


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



QUOTE(liammc @ Aug 24 2016, 10:21 AM) *

I've got the a text box which you type into and click submit and it changes on the index.html page

What changes on the index page --the text the user typed? Please explain what you want to happen in more detail.

QUOTE
but when I refresh the page it doesn't stay, is there away I can make it stay?

If it's only meant to be visible for the current user, you might use javascript and a cookie for small amounts of text, or Local Storage for larger amounts.

If it's meant to be seen by everybody, you need to save it on the server with a server-side script (e.g. PHP), either in a text file or a database.



User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 28th March 2024 - 11:31 AM