I'm quite new in PHP, so I want a example only.
Please don't post any parts, becouse I can learn only if I see a code and self find what ever line does .
Can someone make me a little example script, that will add every time, someone presses on a button, the text, that is containing in the textbox, get added above a .txt file?
Like
[TEXTBOX] [bUTTON]
[TXT FILE:
END TXT FILE]
If I will type 'Hi' in the textbox, and then press on the button, it will be like this:
[TEXTBOX] [bUTTON]
[TXT FILE:
Hi
END TXT FILE]
If I will type now 'Rofl' in the box, and press again, it will be like this:
[TEXTBOX] [bUTTON]
[TXT FILE:
Rofl
Hi
END TXT FILE]
But if I typed notting in the textbox, notting happens too when I press the button.
If it's possible, it would be fine if, when the button has been pressed, you will get redirected to the page 'succes.php'
Thank you,
Dennis.