weareribbons Posted March 1, 2010 Share Posted March 1, 2010 I'm working on a project that pulls a random word from a dictionary. The user types in a word-association for that words and submits a form. I want the form to not only store the word they submit, but to also add the randomly-generated one their given. Any thoughts on how to approach this? I have the random word outputting but I think I need to create some sort of variable that captures the word in each session to be used in other parts of the site. Let me know if you have any thoughts - thanks so much. Quote Link to comment Share on other sites More sharing options...
Psycho Posted March 1, 2010 Share Posted March 1, 2010 Just populate a hidden field on the form with the ID of the random word you have pulled from the database. If you need that particular word available on later pages, then save it as a session variable. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.