Question: PHP Variables
-
This is a newbie question. But I’ve done some research trying to find a solution towards my problem but couldn’t. How do you store variables that are not changeable. I created a custom form on wordpress that posts a template like if they type in their name on the form, it will appear on the post as Name: yourname. But the problem here is, each time a person uses that form, it overwrites the variable for the previous post. So if the previous post contained Name: John. It would be changed to the new entry Name: Alex. Thats the problem. I don’t want the previous name for the previous post changed each time the new post is made from the form. How do I do resolve this? Do I store a cookie or create a cache? Any suggestions or codes that I could use.
Thanks, I’ve been stuck on this and I know what your saying “What a newbie.”
- The topic ‘Question: PHP Variables’ is closed to new replies.