Hi,
I'm having problems printing out HTML code as a record using the RandomRecord Mod. Some of the spaces are being replaced by "`" as shown below:
<a href=http://websponsors.com/cgi-bin/ad_click.cgi?userid=26867&offerid=1101>``<IMG SRC=http://websponsors.com/leads/nissanx/xgosunsetdr-468x60.gif ``width=468 height=60``alt="Nissan Xterra 4WD Sweepstakes" border=0>``</a>
Do I need to user URLENCODE or SPLITDECODE, and how do I incorperate it into the print statement in the seperate CGI file below?
print "Content-type: text/html\n\n";
open (DATABASE, "<$db_file") || die print "Eek! Couldn't open database!";
@line=<DATABASE>;
close (DATABASE);
srand;
$array = $line[int rand(@line)];
# If you're $db_delim is not '|', change it here (between /\ and /,)
@dbman_field = split (/\|/, $array);
print "$dbman_field[2]";
exit;
Thanks!!!!!
I'm having problems printing out HTML code as a record using the RandomRecord Mod. Some of the spaces are being replaced by "`" as shown below:
<a href=http://websponsors.com/cgi-bin/ad_click.cgi?userid=26867&offerid=1101>``<IMG SRC=http://websponsors.com/leads/nissanx/xgosunsetdr-468x60.gif ``width=468 height=60``alt="Nissan Xterra 4WD Sweepstakes" border=0>``</a>
Do I need to user URLENCODE or SPLITDECODE, and how do I incorperate it into the print statement in the seperate CGI file below?
print "Content-type: text/html\n\n";
open (DATABASE, "<$db_file") || die print "Eek! Couldn't open database!";
@line=<DATABASE>;
close (DATABASE);
srand;
$array = $line[int rand(@line)];
# If you're $db_delim is not '|', change it here (between /\ and /,)
@dbman_field = split (/\|/, $array);
print "$dbman_field[2]";
exit;
Thanks!!!!!
