Follow us on Twitter!
One mans freedom fighter, another's terrorist.
Wednesday, April 16, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 23
Guests Online: 21
Members Online: 2

Registered Members: 82807
Newest Member: Black Hawk
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Page 2 of 2 < 1 2
Author

RE: Validate Input Forms Using PHP

clone4
Member



Posts: 586
Location: He is back and he's bad!
Joined: 25.11.07
Rank:
Mad User
Posted on 20-10-08 22:57
So am I, but oldschoold perl style GrinGrin sry for the hijack, couldn't resist.
But anyway good luck with that...


[img][/img]img164.imageshack.us/img164/5713/perlvl0.jpg

clone4.freehostia.com/ubuntu_3.png
spyware - "They see me trollin'..."
<yaragn> ever seen that movie? The Matrix?
<yaragn> with those green lines of flying text?
<yaragn> *THAT'S* Perl

clone_4@hotmail.com
Author

RE: Validate Input Forms Using PHP


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-10-08 00:32
Zephyr_Pure wrote:
Testing a string for != '' and testing a string with !empty() are synonymous when looking for empty strings. However, empty will also capture null values, which is essential for testing MySQL DB values for empty / null values.

Basically, it can be boiled down to this:

1. != is fine for testing for '' only (an empty string).
2. empty() is good for testing for both an empty string and a null value.
3. isset() is meant to test the existence of a variable... if a value is not POSTed at all, it will fail this. If it is POSTed, it will possibly pass this; this is not a good way to test for empty POST values.


This is some good stuff. Do you think there is anyway that we can create a thread containing pointers for programming languages (maybe even 1 thread per language or a forum category)where people can post pointers and mistakes to avoid that would be too short for an article yet still helpful for novice programmers so that such advice doesn't get lost?


Author

RE: Validate Input Forms Using PHP

fashizzlepop
Member



Posts: 482
Location: Old folks home.
Joined: 08.04.08
Rank:
Moderate
Posted on 21-10-08 00:39
...and to keep it spam free? Yah right. Not to mention flame free.

Won't happen.


"The definition of insanity is doing the same thing over and over again and expecting different results.”
~Albert Einstein~


csullivan.codeinspire.net/images/boomsig2.png
fashizzlepop@gmail.com http://csullivan.codeinspire.net/
Author

RE: Validate Input Forms Using PHP


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-10-08 00:39
Pwnzall wrote:
Do you think there is anyway that we can create a thread containing pointers for programming languages (maybe even 1 thread per language or a forum category)where people can post pointers and mistakes to avoid that would be too short for an article yet still helpful for novice programmers so that such advice doesn't get lost?

I've already got a few ideas on something very much like this. Also, another HBH member brought up a different perspective that would yield similar results. So, ideally, something like this will be in the future. Near or far? Hard to say... there are a few more pressing items before that happens. For those of you that do have ideas like this (that would benefit the community as a whole, please feel free to PM me or point me to a thread where you initially proposed the idea. If my PM box is full, hold the idea and give me a shout so I can clean it out.

fashizzlepop wrote:
...and to keep it spam free? Yah right. Not to mention flame free.

Won't happen.

It's not like I can't delete such posts or anything. Mods and admins are freely able to do so. If an idea that could help the community as much as that one was put in place, I'm reasonably certain that it would warrant at least one more moderator. It would also encourage responsible behavior and a unified mindset in the community... both of which have been lacking for a good while now.

If you stay stuck on reasons that something can't be done, it won't be.




Edited by on 21-10-08 00:48
Author

RE: Validate Input Forms Using PHP


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-10-08 00:52
Zephyr_Pure wrote:
If my PM box is full, hold the idea and give me a shout so I can clean it out.

Don't you have unlimited PM space?
That should come standard if you are an admin, imho.


Author

RE: Validate Input Forms Using PHP


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-10-08 00:56
SwartMumba wrote:
Don't you have unlimited PM space?
That should come standard if you are an admin, imho.

Mine was on backorder. For now, I don't. Pfft


Author

RE: Validate Input Forms Using PHP


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-10-08 07:07
WOW I am pretty amazed that my thread sparked up this little discussion.
Author

RE: Validate Input Forms Using PHP

yours31f
Member



Posts: 1678
Location: Dallas Texas
Joined: 27.04.07
Rank:
Elite
Posted on 21-10-08 16:20
I like the idea. If i could get some help with moderation and such, I would be willing to change CTheCode.com up a little bit to support all languages.


Debugging is what programmers do to beta software to make it take up more room on your hard drive if it is running too efficiently.


img259.imageshack.us/img259/3713/sigr.png

yours31f@live.com yours31f@yahoo.com rpwd.info
Author

RE: Validate Input Forms Using PHP


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 21-10-08 16:53
yours31f wrote:
I like the idea. If i could get some help with moderation and such, I would be willing to change CTheCode.com up a little bit to support all languages.

No offense, but I believe the goal here is to have this be an addition to this site. That would also lend itself to moderation and community-based submissions, rather than content provided by your users. This would improve our community involvement and prevent this from becoming a conflict of interest, so to speak.


Author

RE: Validate Input Forms Using PHP

yours31f
Member



Posts: 1678
Location: Dallas Texas
Joined: 27.04.07
Rank:
Elite
Posted on 21-10-08 17:25
Understood. I an see how something of that magnitude could become a conflict but, If I may say so this could help this site significantly.


Debugging is what programmers do to beta software to make it take up more room on your hard drive if it is running too efficiently.


img259.imageshack.us/img259/3713/sigr.png

yours31f@live.com yours31f@yahoo.com rpwd.info
Author

RE: Validate Input Forms Using PHP

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 21-10-08 18:44
yours31f wrote:
Understood. I an see how something of that magnitude could become a conflict but, If I may say so this could help this site significantly.


Symbiote. If I may say so, I most certainly don't think your community can add value to HBH.



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: Validate Input Forms Using PHP

yours31f
Member



Posts: 1678
Location: Dallas Texas
Joined: 27.04.07
Rank:
Elite
Posted on 21-10-08 18:57
Sorry, I was unclear of what I meant, I meant that having that extra category in the forums here, would be good for this community.


Debugging is what programmers do to beta software to make it take up more room on your hard drive if it is running too efficiently.


img259.imageshack.us/img259/3713/sigr.png

yours31f@live.com yours31f@yahoo.com rpwd.info
Page 2 of 2 < 1 2