Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: XML-Parser with web application

by dHarry (Abbot)
on Jul 26, 2010 at 13:48 UTC ( [id://851366]=note: print w/replies, xml ) Need Help??


in reply to Re^2: XML-Parser with web application
in thread XML-Parser with web application

I'm not sure if I understand your question correctly. Typically a user submits a form by clicking on a button, the server does some processing and returns the results to the user. Do you mean send the results back to the user? I don't understand the logic of your script. For one thing I would expect a "$var new CGI;" somewhere. But you also send an email with data. I suggest you first write a simple CGI application that works and later add the XML stuff. See CGI Programming for help.

Replies are listed 'Best First'.
Re^4: XML-Parser with web application
by sanku (Beadle) on Jul 26, 2010 at 14:07 UTC
    I know that what every I have done right now is some how difficult than normal cgi application. But i would like to do this work only by using XML outfile and XML parser to convert the xml file to html file. Do you know any module which will parse the XML file as reference value and XSLT file as file in perl. Thanks sanku

      Sticking in a use CGI; is not magically going to make it a working webap. You have to write code to make it work. The approach of transforming XML with XSLT to generate a html page is fine. What is missing from your code is the CGI stuff. For example I would expect (at least) something like:

      use strict; use warnings; use CGI; $q = CGI->new; print $q->header, $q->start_html('blabla'), $q->end_html;

      Where do you create the HTTP header? Where do you tell it to output the html?

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (7)
As of 2024-04-18 07:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found