Everytime I refresh it sends the form to me. How do I make..

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!

Moderator: General Moderators

Post Reply
nydr
Forum Newbie
Posts: 1
Joined: Sun Dec 26, 2004 5:40 pm

Everytime I refresh it sends the form to me. How do I make..

Post by nydr »

the script run only when the submit button is pressed?
I have the php in the same file as the form. I want it in the same file because I already know howto make it work with the php being external.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

detect that the submit button is apart of the input stream, and switch the output to your script's code path. :?
Post Reply