0

I am creating a site that requires a user to add tags to their forum. I have already implemented the form and button to add tags to an array, but I am wondering if there is a way in which:

when a user clicks on the "add tag" button again, it will add the new tag to the array even when the page refreshes...

2
  • It must go to the database! There are no other way to do this task, unless you do not need the tags forever. You can store the tags in a super global $_SESSION but it will die soon or later. Commented Feb 6, 2012 at 19:20
  • ok. just needed the tags to be stored somewhere before the "save" button was clicked and then sent to the database. Thank you Commented Feb 6, 2012 at 19:24

1 Answer 1

1

you'll probably want to use a database for what you're trying to do. An array in a php script is short-lived, it only exists for the duration of that single request.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.