Re: on input form showing error message for duplicate entry.



Hmm Steve <no.one@xxxxxxxxxxx> 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 :(

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

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,

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?


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


--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ikciu | gg: 718845 | yahoo: ikciu_irsa | www: www.e-irsa.pl

2be || !2be $this => mysql_query();


.



Relevant Pages

  • Re: on input form showing error message for duplicate entry.
    ... my SITE will not crash. ... you can 'what if' the daylights out of this script. ... this scenario DOES NOT exist in this script. ... | i think, there is no sense to speak more about it, think again about my ...
    (alt.php)
  • RE: How to ensure a script to run when system crashes
    ... If the latter (Crash) there is no way to run some code AFTER the system has ... Your best bet is disabling Wake-On-Lan in the BIOS which should disable your ... I am running wmi script to enable one of the LAN connections during system ... for shut down but the unload event is not called when the system crashes. ...
    (microsoft.public.win32.programmer.wmi)
  • RE: Kernel Panic
    ... I think I see what caused the kernel to crash. ... >and slapped a 1GB SCSI disk on it (the system isn't intended ... >>I just wrote a little shell script that, ...
    (FreeBSD-Security)
  • Re: segmentation fault at the end of script
    ... >This script is launch by a script shell on an linux machine like this: ... Have you tried examining the core dump with gdb to give ... using a program that'll deliberately crash: ...
    (comp.lang.php)
  • Re: 4-Person Roundtable - Intellimix?
    ... No script but how structured? ... can prempt who is likely to speak next. ... halfwayand you just ride up the one for the current speaker. ... first word of a speaker, not edged up over a few words. ...
    (rec.arts.movies.production.sound)