in reply to Re^5: Add timestamp to helpdesk form
in thread Add timestamp to helpdesk form

Hmm that seems to have worked sort of but it gives me this error:

Status: 500 Content-type: text/html Software error:

Cannot open http://www.perl03.georgeself.com/cgi-bin/forms.txt: No such file or directory at helpdesk.cgi line 26.

For help, please send mail to the webmaster (webmaster@perl03.georgeself.com), giving this error message and the time and date of the error.

I made that file and it does exist so not sure what it is talking about or if I'm doing something wrong?

Replies are listed 'Best First'.
Re^7: Add timestamp to helpdesk form
by poj (Abbot) on Jul 04, 2014 at 20:26 UTC

    The database location $gbdata needs to be a filepath/filename not a URL
    my $gbdata="http://www.perl03.georgeself.com/cgi-bin/forms.txt";

    Also the folder has to be writeable by the web server and normally cgi-bin folders are not for security reasons. If you are just learning/testing then try using the /tmp folder, same as the semaphone.

    my $gbdata = "/tmp/forms.txt";
    poj
      Yea thank you so much I literally figured it out right before coming back here. I just changed the name to forms.txt and it found it. THANK YOU THANK YOU THANK YOU!!

        Your next problem will be here

        $type=<GB>; # Assumes that each entry is $prob=<GB>; # exactly 3-lines long... my $time=<GB>;
        because using <textarea name="problem" rows="10 cols="40">
        means the problem text may be more than 1 line.

        poj