Hey all,
Just finished writing my first php script and it does work.
However, every time I do a web page refresh/reload (on the page that contains the script), it runs. In fact, every visit to the web page runs the script. This is not what I wanted.
What can I do to prevent this?
The script simply parses information on a form and then sends me an email. I only want the script to run when information is sent to it from my form, not every time the web page with the script gets loaded/reloaded. Should I place the script within a sub or function? Would this make a difference?
Any and all help is greatly appreciated. Thanks. Peace!
Thank
You
Have
A
Nice
Day
Just finished writing my first php script and it does work.
However, every time I do a web page refresh/reload (on the page that contains the script), it runs. In fact, every visit to the web page runs the script. This is not what I wanted.
What can I do to prevent this?
The script simply parses information on a form and then sends me an email. I only want the script to run when information is sent to it from my form, not every time the web page with the script gets loaded/reloaded. Should I place the script within a sub or function? Would this make a difference?
Any and all help is greatly appreciated. Thanks. Peace!
Thank
You
Have
A
Nice
Day