Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: CGI hidden input value wrongly assigned.

by mbadolato (Hermit)
on Jun 13, 2006 at 04:42 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-20 00:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found