summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xform.cgi11
1 files changed, 6 insertions, 5 deletions
diff --git a/form.cgi b/form.cgi
index d4d7c4e..09de324 100755
--- a/form.cgi
+++ b/form.cgi
@@ -3,11 +3,12 @@
use CGI::FormBuilder;
use utf8::all;
+my $build_path = '../build';
+
# TODO: check if protocol-agnostic URL works
-my $webroot_url = 'http://byvandring.nu/feedback/';
-my $webroot_path = '/home/bynu/public_websites/byvandring.nu/feedback';
-my $req_path = $webroot_path . '/index.html';
-my $ack_path = $webroot_path . '/tak/index.html';
+my $webroot = 'http://byvandring.nu/feedback/';
+my $req_path = $build_path . '/html/feedback/index.html';
+my $ack_path = $build_path . '/html/feedback/tak/index.html';
# Set this to 1 for a separate confirmation page
my ($confirm) = 1;
@@ -34,7 +35,7 @@ my $form = CGI::FormBuilder->new(
# /],
messages => ':da_DK',
submit => ['Send oplysningerne'],
- action => $webroot_url, #avoids loosing submitted values when redirected from other site
+ action => $webroot, #avoids loosing submitted values when redirected from other site
);
$form->field(