op, are you aware that javascript is not perl? Do you know what language the onsubmit event handler comes from? You seem to have skimmed over a few steps in your web programming education:

1) Your html is atrocious, so you need to read a modern text book on proper html.

2) You don't have the skill yet to include any javascript anywhere on your html pages. So for the next year, forget you ever heard the word javascript. If you want to learn server side programming, then concentrate on that. If you want to learn client side programming, then concentrate on javascript. But whatever you do, don't try to learn server side programming and javascript at the same time.

3) You don't call perl scripts with javascript onsubmit event handlers.

4) For practice, you need to create a basic html page with one form field and a submit button. When the user clicks on the submit button, the form should request your perl script. Your perl script should return an html page that says, "You entered: ...." How is that done? Read five beginning CGI tutorials, and then come back if you still have any questions.


In reply to Re^2: Perl in HTML by 7stud
in thread Perl in HTML by Appy16

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.