Menu
Forums
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Trending
What's new
New posts
New profile posts
Latest activity
Members
Current visitors
New profile posts
Search profile posts
Upgrades
Log in
Register
What's new
Search
Search
Search titles only
By:
All threads
Latest threads
New posts
Trending threads
New posts
Search forums
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
Server Development
Habbo Retros
Habbo Q&A
PHP Error Handling Help
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="tyr0ne" data-source="post: 110773" data-attributes="member: 14633"><p>Like I said you don't need to check if they're all set to submit the form. You just have to see if you have your form being posted by checking if( isset($_POST["formname"])) or if( $_POST["formname"]). THEN when you know you have a form being posted, you check if they're all set. The way you're doing it permits no error handling whatsoever. Sure it checks if they're all set but you can't give any errors to your user when one is empty.</p><p> </p><p>Checking if they're all set just takes ressources and is uneeded. Instead you use those ressources you would waste to check if each POST has a value in the condition I made.</p><p> </p><p>If you want to be even better, use a for() to go through your post array, that will save you some lines of code.</p></blockquote><p></p>
[QUOTE="tyr0ne, post: 110773, member: 14633"] Like I said you don't need to check if they're all set to submit the form. You just have to see if you have your form being posted by checking if( isset($_POST["formname"])) or if( $_POST["formname"]). THEN when you know you have a form being posted, you check if they're all set. The way you're doing it permits no error handling whatsoever. Sure it checks if they're all set but you can't give any errors to your user when one is empty. Checking if they're all set just takes ressources and is uneeded. Instead you use those ressources you would waste to check if each POST has a value in the condition I made. If you want to be even better, use a for() to go through your post array, that will save you some lines of code. [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
PHP Error Handling Help
Top