PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
What I think needs to be done is like I use the terenary symbol for part, I think* the way I need to do this is make a option for say ?edit so then I'm thinking I need to make a variable $edit that will display all my words then print them with the proper formating, hopefully in time I can have a way to simply approve the submissions that wya I don't need to constantly FTP a textfile.
I'm trying to figure out how to take information from a textfile that was put there via form
with $_POST['name'] $_POST['word'] $_POST['definition']
With this information, what i have to do now is go into a textfile ftp it to my desktop, edit it, which contains peoples submissions of the above $_POST statements, and then format them myself using
Example name#datasep#example word#datasep#example definition #entrysep#
What I would like to do is take this tedious process and create a form that i could do it with, and make the process more automated, as opposed to the FTP crap i need to do now.
Why not set those changes at the time the form data is written to the file? It seems to be the easiest method, since the script is already grabbing the data, opening the files and writing to it. As your script does this, tell it to format the text file as well.
I suppose though that would eliminate an entire step of creating the graphical interface, however, one thing I worry about and the reason I hessitate to use this method is because, if a fool is to use my program and write something senseless, or a spammer is, then I cannot have any means of filtering.
Anytime you let users add their stuff to your stuff you run the risk of stupid crap making its way into your stuff. It's a risk you take when depending on others for content. Not your fault, just the way it is.