This depends on what you want to do. If you want to verify data in a form before it gets submitted...say a user enters an incorrect e-mail address, and you want to prompt him for a proper one before submitting, then I would use a cgi script that works like so: (this is how I have done it in the past...also using Linux...not Windows)
User presses submit (submission actually takes place...but CGI handles it accordingly) CGI script checks each form entry If any of the form entries are incorrect CGI prints out the same form with the user's entries in it Along with messages indicating the problems (using variables for user entries above is the easiest way...so, a cgi script that generates an HTML form is the way to go....you won't even have to use javascript then ) User presses submit again If form is correct, CGI script continues on to whatever code Hope that helps, Jessica On Fri, 28 Sep 2001, jaouad ask me wrote: > Hi, > > I have a simple question for you guys, I have a FORM where users have to > input some data, and I want to control if any data was input in my form > before I submit it, what I want to do, is from a java script in my html file > call a Perl script that do this job, I mean the police job :), is that > possible? How? > > thanks guys > > jeb > > _________________________________________________________________ > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp > > _______________________________________________ > Perl-Unix-Users mailing list. To unsubscribe go to >http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users > -- _______________________________________________ Perl-Unix-Users mailing list. To unsubscribe go to http://listserv.ActiveState.com/mailman/subscribe/perl-unix-users