Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
I could not find an easy one line solution for embedding the output easily into html.

if your server supports php, you could do this:

Create a new text document-->Open it-->put this one line of code into it:

<? virtual("/cgi-bin/foldername/scriptname.cgi"); ?>

--> Save the file as "scrtest.php" (We sometimes need to use the "Double Quotes" to make sure your editor does not put a .txt or .doc on the end of the file extension)

Upload to webserver, then go to Internet Explorer Address bar --> www.yoursite.com/scrtest.php

If your thinkin What about the rest of my HTML, you could use this:

<html><body>
Your Html before the script output gets called

<? virtual("/cgi-bin/folder/scriptname.cgi"); ?>

Your HTML After the script output has been called</body></html>

(again it will have to be saved as a .php page. index.php if you want it as the default document in a folder (rename the old index.html to indexold.html; it may check for this file first when a page is not specified in a web address.)

In reply to Re: What is the best tool to embed perl in HTML? by Anonymous Monk
in thread What is the best tool to embed perl in HTML? by Anonymous Monk

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 sharing their wisdom with the Monastery: (3)
As of 2024-04-19 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found