IGNITe/400 Mailing List Archive Entry
Be careful about using Javascript to validate input. You can not rely on
the browser having JS enabled or that someone won't use a parameter
manipulation hack to attack your system. You should also check the
parameters within your macro prior to executing the DTW_SQL function to
ensure that they are valid. This can be done with a simple %IF block like
the following:

%IF($(parm) == "")
@DTW_ASSIGN(parm, "some_value")

Or better yet, if both parms are null then send an error page back to the
client like this:

%IF($(parm1) == "" || $(parm2) == "")

Rod Davis

ign_list@ignite400.org (IGNITE400 MEMBERS LIST) on 10/29/98 12:28:22 PM

Please respond to ign_list@ignite400.org

To: ign_list@ignite400.org (IGNITE400 MEMBERS LIST Mailing List)
cc: (bcc: Rod L Davis/RyTE/US)
RE: Net. data question

Bob Cancilla IGNITe400 Account


I generate all of my forms using Microsoft Frontpage which generates
JavaScript editing for all of the input fields. You can obviously code
own JavaScript if you prefer another HTML tool. The other thing I do is
write my macros to default valid values into the fields before running the

A simple %IF(myfld == "")

should do the job.

Hope this helps.

Bob C.

-----Original Message-----
ign_list@ignite400.org [mailto:ign_list@ignite400.org]
Sent: Thursday, October 29, 1998 12:11 PM
Net. data question

Darin Dutcher

I have a macro that searches a file for two different field names. It
returns the results correctly if both fields are valid, and if there is no
results (100 message) works fine. My problem is when nothing is put in
either input field and then submitted. WRKACTJOB show the job running and
it will start eating up the system. CPU% will climb as high as 95%. What
can I do so this does not happen any more?

My main goal is to make both field required, but have tried to get an if
statement to do this for me, but does not work. What way should I me

Thanks for your help.

Darin Dutcher

Looking for staff or perhaps you want a new job?


To unsubscribe from this great list send an email to
ign_list@ignite400.org with unsubscribe as the subject.

Posted by  Subject  Date 
  RE: Net. data question  1998/10/29  View 
  RE: Net. data question  1998/10/29  View 

Return to the Mailing List Archive Page
Click to return to home page
© Copyright 1999 by IGNITe/400
This page last updated Sat, 21 Aug 1999 16:41:00