ReeRee
New Member
- Messages
- 6
- Reaction score
- 0
- Points
- 0
HI all! I am having issues with my webpage and am too frustrated to think of an answer :rant2:. I read all the posts on similar probs I could find, most were resolved and said start new thread, so I am doing just that.
First, a brief synopsis of what I am going for with the page: I have some html forms and a perl cgi script. The script should take the input of the forms, and 'print' it to a txt file. That file then is displayed at the bottom of said page using CSS.
I have the forms in place, a script that SHOULD work, and the txt file displayed. The problem is: the cgi is doing nothing. I can't seem to figure this out :dunno:. I checked and rechecked the code (an area I am not too comfortable with in the first place) and it seems fine. I tried looking into the Perl mods on CPX, but that only confused me more. I even tried to go a different route with php/mysql, and after 5 hours of pulling hair I said :thefinger that.
Am I missing other components? Does my script need work? Is it my html? I have no clue. PLM is the page.
My Perl script is the cgi-bin subfolder of public_html and reads:
What other info (if any) do I need to post? Am I even in the right forum?
Any and all help is most welkum.
Thanks! :biggrin:
First, a brief synopsis of what I am going for with the page: I have some html forms and a perl cgi script. The script should take the input of the forms, and 'print' it to a txt file. That file then is displayed at the bottom of said page using CSS.
I have the forms in place, a script that SHOULD work, and the txt file displayed. The problem is: the cgi is doing nothing. I can't seem to figure this out :dunno:. I checked and rechecked the code (an area I am not too comfortable with in the first place) and it seems fine. I tried looking into the Perl mods on CPX, but that only confused me more. I even tried to go a different route with php/mysql, and after 5 hours of pulling hair I said :thefinger that.
Am I missing other components? Does my script need work? Is it my html? I have no clue. PLM is the page.
My Perl script is the cgi-bin subfolder of public_html and reads:
Code:
[I]#!/usr/bin/perl[/I]
[B]use[/B] strict;
[B]use[/B] warning;
[B]use[/B] diagnostics;
[B]use[/B] CGI;
[B]my[/B] $cgi = CGI->new;
[B]my[/B] $name = $cgi->param[U]([/U]'name'[U])[/U];
[B]my[/B] $class = $cgi->param[U]([/U]'class'[U])[/U];
[B]my[/B] $level = $cgi->param[U]([/U]'level'[U])[/U];
[B]open[/B][U]([/U]outputfile,"/kos.txt"[U])[/U];
[B]print[/B] [U]([/U]outputfile "$name \n<br> $class \n<br> $level \n<br>"[U])[/U];
[B]close[/B][U]([/U]outputfile[U])[/U];
[B]print[/B] "Location: plmkos.html\n\n";
[B]exit[/B];
What other info (if any) do I need to post? Am I even in the right forum?
Any and all help is most welkum.
Thanks! :biggrin: