in reply to Very wierd CGI behavior
Try putting this at the top of your code.
#!/usr/bin/perl -wT # ensure all fatals go to browser during debugging and set-up # comment this BEGIN block out on production code for security BEGIN { $|=1; print "Content-type: text/html\n\n"; use CGI::Carp('fatalsToBrowser'); }
If you can type in the URL and it works, it means your script is doing okay. Can you show us the HTML? Poorly formatted HTML could cause issues. Any chance that you have a base HREF set up in the HTML document that's forcing the links to another domain?
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
|
|---|