Re: Generic Perl Questions



Paul is right and wrong. You can apply this to a generic CGI issue.
But If your question is "How do I use PERL in an interactive CGI form?
then maybe I can help.
AJAX is probably best for advanced interactive uses. But you asked
about forms. I have constructed such interactive forms.
Basicly the perl program called in the ACTION="/myform.cgi" has code
that sends back to the browser a webpage just like the one they sent
but with my new material.
Print "the header depending on your system"
Print the HTML code with new items imbedded useing the perl "$fields".
You can use "print <<ENDOFSEC1;
... HTML from form
... More HTML .... with value="$name" instead of
value=""
ENDOFSEC1"
If you need to code in special replies just add new "print <<"
sections.
Pinchas Richard Wimberly

.



Relevant Pages

  • Re: Walking a tree and extracting info... Problems
    ... Learn to use the Perl debugger and to use the ... foreach $file (@thefiles) { ... push @lines, $_; # push the data line onto the array ... Perl has allocated "@lines" once for the whole program; when you process the next file in the directory you push the lines on the bottom; the match for the HTML title then fires every time. ...
    (comp.lang.perl.misc)
  • Re: HTTP Filtering and Threads...
    ... You are trying to parse HTML with regular expressions. ... This is not Perl. ... # Some irrelevant code stuff... ... foreach $userID { ...
    (comp.lang.perl.misc)
  • RE: question
    ... well it's really HTML that's the problem. ... > was whether perl was appropriate, not how to do it in perl. ... > this e-mail message or disclose its contents to anybody else. ... > should check this e-mail and any attachments for viruses. ...
    (perl.beginners)
  • Re: How to write to drive A: from CGI Perl
    ... >> If that does not look weird to you, then please go back to basics. ... Please (assuming that the quoted text is an actual excerpt from the HTML ... You will have a better version of Perl? ... for HTML or Perl or CGI or anything. ...
    (comp.lang.perl.misc)
  • Re: Two Perl programming questions
    ... directory names using Perl. ... I can debug through my Perl script and ... How would Perl create the dynamic HTML that I ... Perl is general purpose programming language. ...
    (comp.lang.perl.misc)