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: 110739" data-attributes="member: 14633"><p>You shouldnt do it like that. just verify one post variable, for example</p><p> </p><p>[CODE]if( $_POST["formname" ) {</p><p> </p><p>}[/CODE]</p><p> </p><p>and then inside that if check your values.</p><p> </p><p>something like</p><p> </p><p>[CODE]$err = "";</p><p> </p><p>if( empty($_POST["name"]) ) {</p><p> $err = "You have to put your name";</p><p>} else {</p><p> if( empty($_POST["somethingelse"]) ) {</p><p> continue with all your checking</p><p> } else {</p><p> your db query to input everything when you validated all your data</p><p> }</p><p>} [/CODE]</p></blockquote><p></p>
[QUOTE="tyr0ne, post: 110739, member: 14633"] You shouldnt do it like that. just verify one post variable, for example [CODE]if( $_POST["formname" ) { }[/CODE] and then inside that if check your values. something like [CODE]$err = ""; if( empty($_POST["name"]) ) { $err = "You have to put your name"; } else { if( empty($_POST["somethingelse"]) ) { continue with all your checking } else { your db query to input everything when you validated all your data } } [/CODE] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
Server Development
Habbo Retros
Habbo Q&A
PHP Error Handling Help
Top