Hello Everyone,
I'm having a bit of trouble writing a small web page. My goal is to have a very basic page that will allow users to input their email address and store it on a server side file such as .txt (or anything really) that way I can go in later and ensure they're all registered correctly.
I'm using the code below to setup the email field however I'm unable to figure out how to store these once the submit button is pressed. I'd prefer this not use ActiveX or anything like that to run. I'd like this to just be a simple web page with no pop ups or permissions required. If anyone can give me any assistance I'd greatly appreciate it.
Well for starters, this is an obvious security problem. You need to filter all user input. The above code could make your application vulnerable to a command injection attack.
To answer your question, you could store any needed information into the $_SESSION superglobal. For example...
Well for starters, this is an obvious security problem. You need to filter all user input. The above code could make your application vulnerable to a command injection attack.
To answer your question, you could store any needed information into the $_SESSION superglobal. For example...
Thanks for the assistance. Once something like this was put in how would I go about converting this to a file which would be easily accessible to myself or other staff?
Bookmarks