in reply to Validation in forms using Perl

You can validate form fields using perl and display an alert as a html however you cannot do an alert without the use of javascript...(client side)

Replies are listed 'Best First'.
Re^2: Validation in forms using Perl
by cmic (Acolyte) on Jun 01, 2005 at 21:23 UTC
    Hi. Yes it works. Here is an exerpt of what use for a problem like yours :
    ... &ConfirmBox("OK : Le device " . $o_nom . "a été renommé " . $n_nom . " dans ManagIP."); ... ... # + # You can use the javascript:alert instead + # + sub ConfirmBox { my ($Message) = @_; print "<html><body onload=\"javascript:confirm(\'" . $Message . "\\nCliquer sur OK pour continuer." . "\')\"></body></html>" }
    Hope it'll help.
    --
    cmic. Life helps. Perl Too.
      I think you're confusing the issue. The OP knows he can print javascript/html, but its still the browser that pops up the alert.