Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: CGI hidden input value wrongly assigned.

by mbadolato (Hermit)
on Jun 13, 2006 at 04:42 UTC ( #554948=note: print w/replies, xml ) Need Help??

in reply to CGI hidden input value wrongly assigned.

Check your conditionals and make sure nothing is executing that you think isn't. I just copied your above code:
use CGI qw/:standard/; $thisscript = 'foo'; print p("line 109"); print start_form({ -action => "$thisscript", -method => "post" }); print hidden('action','logout'); print submit('Logout'); print end_form; print p("line 115");
When I ran, I got the expected result:
<p>line 109</p><form method="post" action="foo" enctype="multipart/for +m-data"> <input type="hidden" name="action" value="logout" /><input type="subm +it" name="Logout" value="Logout" /></form><p>line 115</p>
So something is running that you think isn't.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://554948]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2023-06-09 17:01 GMT
Find Nodes?
    Voting Booth?
    How often do you go to conferences?

    Results (36 votes). Check out past polls.