Hi Again. When I open jala-mi.org and it calls a login form inside an iFrame (the first item in the old switch tree and the new tree w/out switch, the form comes up fine and the activity (warn) is posted to the server error log. When I submit the form to log in, no response and nothing in server log. This serves the login form per request:
Main(); sub Main { my $action = $query->param('action'); { warn("manage_users.cgi line 63: '$action'"); warn("Request from User for Login Form"); ($action eq "GetLoginForm") && do { manageusers::OpenConnection(); warn("process login request - create session"); my ($result,$message0,$message1,$message2) = ProcessLoginReque +st($query); if(!$result){ warn("Tell client that login failed"); manageusers::CloseConnection(); LoginUserFailedForm("The Login Request failed. Please try a +gain or contact the office."); return; #exit; } elsif ($result == 1) { #Client already logged in so tell them manageusers::CloseConnection(); CreateAlreadyLoggedinForm($message0); return; } elsif ($result == 2){ warn("Not logged in so send client login form"); manageusers::CloseConnection(); CreateLoginForm($message0, $message1, $message2); return; #exit; } };
Below follow on submittal request does not elicit a response the the as shown in the server log.Nothing at all.
#Login User ($action eq "LoginUser") && do { #Attempt the login manageusers::OpenConnection(); warn("Opening The Login Usr Query: $query"); my ($result, $login_timeout) = LoginUser($query); if ($result == 0){ manageusers::CloseConnection(); warn("Login failed. Creating response."); CreateLoginUserFailedForm("The Login User Name or Password +is invalid. Please try again or contact the office."); return; #exit; } elsif ($result == 1){ #Client already logged in so tell them manageusers::CloseConnection(); warn("Alrrady logged in."); CreateAlreadyLoggedinForm("You are already logged in."); return; #exit; } elsif ($result == 2){ manageusers::CloseConnection(); warn("Login failed. Membership expired."); CreateLoginUserFailedForm("Your Membership Has Expired. To r +enew membership, use the form on this site or contact the office."); return; #exit; } elsif ($result == 3) { manageusers::CloseConnection(); warn("Login succeeded. Creating response."); CreateUserLoginSucceededForm("Login succeeded."); return; #exit; } elsif ($result == 4){ manageusers::CloseConnection(); warn("Login failed.Max attemps response."); CreateLoginUserMaxAttemptsFailedForm("Maximum allowed number + of login attempts exceeded for session. Please contact the office.") +; return; #exit; } elsif ($result == 5){ manageusers::CloseConnection(); warn("Login failed. Timeout."); CreateLoginUserFailedForm("The '$login_timeout' second Login + window has expired. Please try again or contact the office"); return; #exit; } else { manageusers::CloseConnection(); warn("Login failed. Unknown reason."); CreateLoginUserFailedForm("Login failed for unknown reasons. + Please contact the office."); return; #exit; } return; #exit; };
You can see the request form in the iFrame source. Back to the if else tree??

In reply to Re^2: Re: Switch.pm Failure ( CGI::Switch? ) by tultalk
in thread Switch.pm Failure ( CGI::Switch? ) by tultalk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.