Let's assume I have an HTML file.
And this is how my Perl/CGI script looks like:
This is not working, but is it possible to create a directory using that script by clicking on that link in the HTML file? This is a test, because I want to do more advanced stuff.
Code:
<html> <head> </head> <body> <a onClick="../../cgi-bin/test/test.cgi" href="#">test</a> </body> </html>
Code:
#!/usr/bin/perl -w use CGI; use CGI::Carp qw(fatalsToBrowser) ; use IO::Handle; use locale; use POSIX qw( locale_h ); setlocale( LC_CTYPE, 'iso_8859_1' ); STDOUT->autoflush(); STDERR->autoflush(); print <<HTML; Content-type: text/html <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html xmlns='http://www.w3.org/1999/xhtml' lang='en' xml:lang='en:us'> <body> test </body> </html> HTML system("mkdir test");
Comment