Hi
I have a shopping cart script that displays some text after the user has added an item to their cart, it appears like this:
1x 5922 - video at £14.95 each has been added to your cart.
We will now return to you to the previous page.
Content-type: text/html
The above line "Content-type: text/html " also appears. I have located where in the script it is but whatever I do I am unable to remove it, here is the section where it appears in the script:
# Print the HTML header
sub print_header {
print "Content-type: text/html\n\n";
open (HEADER,"$basepath/$header" || print "Could not open $basepath/$header $! \n";
while (<HEADER>) {
print $_;
}
close(HEADER);
}
Any help to sort this out would be greatly appreciated.
Thanks
Mark.
I have a shopping cart script that displays some text after the user has added an item to their cart, it appears like this:
1x 5922 - video at £14.95 each has been added to your cart.
We will now return to you to the previous page.
Content-type: text/html
The above line "Content-type: text/html " also appears. I have located where in the script it is but whatever I do I am unable to remove it, here is the section where it appears in the script:
# Print the HTML header
sub print_header {
print "Content-type: text/html\n\n";
open (HEADER,"$basepath/$header" || print "Could not open $basepath/$header $! \n";
while (<HEADER>) {
print $_;
}
close(HEADER);
}
Any help to sort this out would be greatly appreciated.
Thanks
Mark.