Hi, Actually I have two questions here.
1. When my script writes a cookie I have to refresh the result page before any of the information in the cookie appears. Is there any way to make it available without manually refreshing the page? I thought about using a sub routine with print"Location:scripturl\n\n"; (not actually scripturl but the program url) but the content tag is within the sub rub routine that writes the cookie:
$query = new CGI;
$cookie = $query->cookie(-name=>'MY_COOKIE',
-value=>'Nothing|Nothing',
-expires=>'-1m',
-path=>'/');
print $query->header(-cookie=>$cookie);
If there were a way of canceling out the content type header I could use the print"Location:....... thing after the cookie writing part or place it between the cookie writing sub routine and the result page with the cookie info showing. I'm basing this on the fact that instead of refreshing the page it would simply going through a one time loop of reloading the page(just a thought). At any rate I'm stuck on this one.
2. The next question involves creating a thumbnail on the fly. I have access to both the GD and the Imagemagic modules but don't have a clue how to use them and can't find any resources. I simply want to create thumbs upon user uploading(to decrease filesize) and possilbly link the thumb to the original. I tried to make sense of the documentation included with the PM files but found myself heading for the bridge.
As you might have guessed already, I'm not real proficient with perl but learning. I'll be glad when I finish up current projects to sit down and do some serious studying. Seems for every hour I spend writing I involve another 19 trying to figure out what went wrong(plus another 20 searching the net for answers). If it weren't for sites like this I'd have to change my strategy like take up bird watching or catching butterflies. Thanks a million times over for all the help and for this site.(I keep hoping I find a post I can answer to).