On Jan 4, 2005, at 11:07 PM, Literatecat wrote:
Hi Sean,
I do already have some of the books that you mention, and I have just recently picked up the perl medic to help convert these scripts to the latest version of perl.
However, as I already use hidden fields and have started working on script generated forms, pattern matching, mysql to mention a few things, (although I did see some other things in a book I was flicking through last night that will lead to some other questions here, like using tk toolkit on the web, perl embed, perl sessions etc) I have already altered these script so far that I doubt that copyright exists on them anymore.
I just don't understand the concept of what happens when a script tries to create multiple pages from one query. This makes it difficult to create the code. If you say perl DBI then I already have a book on its way, and I will just have to wait for it to come in.
The issue here is that there is no concept of creating multiple pages for one query. The query is used to generate only ONE page. If you want to generate another page, you have to generate a new query with new parameters. Consider a "paged" DBI output. You have a script that generates a pages that asks the user what to search for. The user presses submit. The next script (or a subroutine from the same script, depending on your design) processes the query and returns results, but only for the first page. On that same page, you need to have all the information from the original database search page as well as a page number. On a submit from this page, you submit back to the second script (the same script), but a parameter in this query tells the script that it is now to generate page two. Other information remains the same. Confusing, yes, but that is the nature of the web. It sounds like you might need to take a step back and make a toy example that does something plain and simple like acccepting user input and then generating output, perhaps using DBI. If this is going to be a large undertaking, I encourage you to look seriously at web development modules like CGI::Application, CGI::Builder, Maypole, and the like.
Sean
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>