|
-
Aug 17th, 2007, 04:14 PM
#1
Thread Starter
Registered User
[RESOLVED] Checking if not postback
Me again.
Follow up to my last resolved thread. This seems to be almost the same question that I escaped with a better tactic thanks to zalez in my last post, but I still don't know how to handle this instance.
Say you have a POST method form that contains a couple of inputs and all must be set and not empty before continuing. If they are not set and empty then you print "Fill in all fields.", for example, to the page.
The default values are empty and not set, so when you navigate to the page for the first time, you print your message immediately.
How in PHP do I tell if the user actually tried to submit the inputs with a button click, in this case, and it is not just the first navigation to the page?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|