Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
"Do you understand how HTTP and CGI work?"

This really is the key, of course. I didn't. When I started work on this I thought 'as long as I don't try to do anything the rest of the program isn't trying to do, I'll be okay', but that has turned out not to be the case at all.

I queried a much more experienced friend on this and now have a better understanding of CGI; however, I am now uncertain how to solve the problem at all.

I can make the desired 'captcha' image display correctly on the first of a number of screens. However, I don't know how to have the generated captcha object 'persist' to a 'place' where I can run the check of the user's guess against it: I can't shove it into a hidden field -- or at least I don't know how to correctly. So after the user hits submit on that first screen, I have the user's input in a parameter, but the generated captcha object is gone.

I'd write more but I'm practicing succinctness. :)

UPDATE: problem solved. It was a stupid problem, having nothing to do with making objects persist -- but everything to do with making my cool headspace persist so I don't miss stupid things. Thanks!!


In reply to Re^2: CGI form 'falls through' without capturing anything by chexmix
in thread CGI form 'falls through' without capturing anything by chexmix

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2024-04-25 06:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found