Web Analytics Made Easy -
StatCounter Calling CGI from HTML - CodingForum

Announcement

Collapse
No announcement yet.

Calling CGI from HTML

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Calling CGI from HTML

    I have the following script. I want HTML to call the CGI script so it outputs the last, first, and e-mail. How would I do that?

    This does not work???

    <form method action="/tsaoautomated.com/cgi-bin/script.cgi">



    ---
    #!/usr/bin/perl -wT

    use strict;

    use CGI ':standard';



    my $last;

    my $first;

    my $email;



    $last = param("last");

    $first = param("first");

    $email = param("email");



    open (FILE, ">> list.txt");

    print FILE "$last, $first, $email\n";

    close (FILE);



    print "Content-type: text/html\n\n";

    print "Thank you for submitting your information.";

    print "U entered $last, ";

    print "$first ";

    print "$email";
    Last edited by vtsao; Feb 19, 2004, 10:29 PM.

  • #2
    try using
    <form method="post" action="tsaoautomated.com/cgi-bin/script.cgi">

    or <form method="post" action="cgi-bin/script.cgi">

    double check spelling, and case sensitivity.
    "There is more than one way to do it."

    Comment


    • #3
      Shouldn't that be

      <form method="post" action="http://www.tsaoautomated.com/cgi-bin/script.cgi">

      or <form method="post" action="/cgi-bin/script.cgi">

      Comment

      Working...
      X