Original Post
I'm just kind of starting to learn php, and I put together a script that I call my "word generator." I have the whole thing working for the most part, but theres one thing that I'm having trouble getting. Basically, I have four text files full of words - each file contains prefixes or suffixes, and theres a default file of prefixes, along with a user-submitted file of prefixes, and the same goes for the suffixes. I have the user-submission working fine, and the script that generates the words works fine (refresh page to run the script again.. I think there might be a better way to do this) but I decided I wanted the user to be able to decide whether to use the two default files, or the two user-submitted files, or all four of them. I have an html form with two checkboxes on the page, and I'm trying to figure out how to use them. I need the php script (on the same page) to be able to access those checkboxes, and I need the page to be able to remember which boxes are checked when the page is refreshed. I want to know if there is any simple way to do this. I'm willing to tweak the way the script works now to get these checkboxes working. Can anyone help me out at all? thanks. the main page for the script is web.ics.purdue.edu/~abernste/words.php