Help With PHP Form
I'm not sure if this is the correct forum, but I am looking for help with a form that I use to collect data to be inserted into a database.
The data collected is used to generate code and a preview for a webpage for the user to save. I made the original form/processing script 3 years ago, so it's very newbish. I'm looking for a better way to pass the variable from the form to the processing script (the one that displays the preview and the code) to the script that will save the data that the user input (colors, content, author information, etc) and the generated code into the database without having to use 30+ hidden inputs. I've heard of globals and the like, but the information I've found left me more confused than enlightened, so I'd appreciate it if someone else could clarify it for me, or at least point me to the write articles.
Also, to store HTML code in a database, how do/should I use stripslashes and htmlspecialchars on all the input collected from the form? I'd appreciate any help! Thanks in advance.
-§- SunBlind
|