|
Posted by Steve on 10/18/06 13:44
".:[ ikciu ]:." <no@mail.com> wrote in message
news:eh3phq$8ss$1@news.dialog.net.pl...
| Hmm Steve <no.one@example.com> wrote:
| conclusion
|
| i just wanted to show you, your code is not perfect, in my country and it
| this age you should to handle all, everytime some1 whants to crash you
site
| / script / ..... you didn't make save code, i don't need to upload it on
my
| server, it is simple, if some1 will prepare url your script will crah, but
| you cant to say YOU RIGHT :(
my SITE will not crash. the *only* way to fuck up this page is to
*intentionally* do so by changing sort criteria in the query string. if that
is someone's intention, it doesn't effect me in the least. i suppress
throwing php sql execute errors so all they'll see is a blank page. doesn't
do a thing to my site.
i AM right...i designed the page to behave EXACTLY as it does...AND it is a
*great* example for linda to get started learning. MUCH BETTER than telling
her SHE IS STUPID for asking a question...don't you think? of course not, or
else you WOULDN'T have done it!!!
| you are not begginer, but this thime you made mistake and this code should
| be rewriten, what if you will insert data in few tables and one insert
will
| crash? you will lost part of data, and your system will be unstable
because
| when you will try to get data you will have only part, rest is dependent
how
| you will handle output functions
again, you can 'what if' the daylights out of this script. the FACT is that
this scenario DOES NOT exist in this script. if it did, i assure you i would
have addressed this. here's another scenario, if you had a brain i'd expect
you to use it...i simply am dealing with the fact that you don't...you just
are the way you are.
| i think, there is no sense to speak more about it, think again about my
| solution for this threed it is works, same as you i know my value and i
| never speak about something what i never used,
YOU GAVE NO SOLUTION. auto-incrementing id's alone don't solve this
problem - as i've outlined many times before...nor do they resolve
data-overwrites which i mentioned linda should watch out for when editing a
record. you called her stupid and give NO working examples that demonstrate
what your solution looks like or how it behaves. i can guarantee you, i can
run your solution and duplicate and overwrite data all day long based on how
you're describing it!!!
| P.S.
|
| >>>> var el = record.personUserName;
| >>>> if (warning.length == 0 && trim(el.value) == '')
| >>>> {
| >>>> warning = "USER NAME is required.";
| >>>> }
| >>>> var el = record.personEmail;
| >>>> if (warning.length != 0 && !isEmail(el.value))
| >>>> {
| >>>> warning = "Invalid EMAIL.";
| >>>> }
|
| it only continues to check other fields if the previous fields are valid.
| you're daft and can't read code.
|
| you right, but for faster performance it should be nested,
| i didn't sleep 53 hours, i just finished new site so i am tired but rest
of
| my comments are correct :) btw, why do you check length and later you
check
| empty string? why not same solution for both variables?
it takes nano-seconds...performance is fine. glad to see you tasted your
foot in your mouth. perhaps the 53 hours is effecting your behavior as well.
man, i have to make *A LOT* of allowances for you, eh?
i check warning.length to see if a previous field generated an error, if not
then i validate the next field. you DO know that in c-style languages, truth
in IF statements are evaluated from left to right instead of blindly
evaluating ALL conditions and THEN looking to see if they all are
true...right?!
and, no, the rest of your comments are as inaccurate as this one and for the
SAME reason...you simply don't know how to read code or have command of the
language.
| you said you will put it into class, don't do it before you will change
the
| code, im started on pascal, delphi, then c, c++, java then i migrate to
php
| but life teach us there is 2 base rules: 1 what user can do and what user
| can't do, 2 validate and don't allow user to set value which is wrong for
| adequate variable - error handling, it means we can write to parts of
script
| and the second is most imortant
omg. i'm frightened to think of what your pascal looks like. lol. i have to
change the code anyway but NOT because of ANYTHING you've said. when i make
the class template, i will seperate the functionality from the html. nothing
more.
you're a toad...and, i'm done with you.
[Back to original message]
|