Problem
I had dbman working fine and then installed file upload mod by jpdeni, which worked fine also. Then I noticed the + sign no longer is able to be added in any text fields e.g. +$49 , but before I could.?
Other than the mod the only difference is auto generate forms is now OFF, as required by the mod. All other fields are lined up, just the plus character dissapears.
I added the following in htm,l.pl under "sub html_record"
$rec{'Misc2'} =~ s/+/\+/g;
Misc2 being the problem field.
Here's how it looked after the addition (bold) (is it in the right place?)
sub html_record {
# --------------------------------------------------------
# How a record will be displayed. This is used primarily in
# returning search results and how it is formatted. The record to
# be displayed will be in the %rec hash.
my (%rec) = @_; # Load any defaults to put in the VALUE field.
$rec{$db_key} =~ s/<.?B>//g;
$rec{'Misc2'} =~ s/+/\+/g;
($db_auto_generate and print &build_html_record(%rec) and return);
Here's is the error I get with the sub routine added...
CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: /+/: ?+*{} follows nothing in regexp at /home/page-secure/www/cgi-bin/shop/thepondguy//html.pl line 209.
Compilation failed in require at /home/page-secure/www/cgi-bin/shop/thepondguy//farm.cfg line 51.
Compilation failed in require at db.cgi line 53.
So, am I anm idiot, or is there an answer.
~Rick
POC Web Services - www.POC.us
I had dbman working fine and then installed file upload mod by jpdeni, which worked fine also. Then I noticed the + sign no longer is able to be added in any text fields e.g. +$49 , but before I could.?
Other than the mod the only difference is auto generate forms is now OFF, as required by the mod. All other fields are lined up, just the plus character dissapears.
I added the following in htm,l.pl under "sub html_record"
$rec{'Misc2'} =~ s/+/\+/g;
Misc2 being the problem field.
Here's how it looked after the addition (bold) (is it in the right place?)
sub html_record {
# --------------------------------------------------------
# How a record will be displayed. This is used primarily in
# returning search results and how it is formatted. The record to
# be displayed will be in the %rec hash.
my (%rec) = @_; # Load any defaults to put in the VALUE field.
$rec{$db_key} =~ s/<.?B>//g;
$rec{'Misc2'} =~ s/+/\+/g;
($db_auto_generate and print &build_html_record(%rec) and return);
Here's is the error I get with the sub routine added...
CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: /+/: ?+*{} follows nothing in regexp at /home/page-secure/www/cgi-bin/shop/thepondguy//html.pl line 209.
Compilation failed in require at /home/page-secure/www/cgi-bin/shop/thepondguy//farm.cfg line 51.
Compilation failed in require at db.cgi line 53.
So, am I anm idiot, or is there an answer.
~Rick
POC Web Services - www.POC.us