You seem to be missing a quotation mark after $login. It looks like you have got yourself caught in a loop because you call one script from another without exiting the first one, so the first script becomes the location you are in. Try printing your location when you enter each script to see where you are. You may be able to improve the navigation with -href=>"./EditLab.pl etc. or -href=>"../EditLab.pl etc.
-----Original Message----- From: Mary Anderson [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 19, 2006 10:28 AM To: beginners-cgi@perl.org Subject: Hyperlink return Hello all, I would like some help on hyperlinks. I have two files EnterLab.pl and EditLab.pl which have hyperlinks to each other. I do EnterLab.pl print a({ -href=>"EditLab.pl/Login=$login }, "Edit Record"); EditLab.pl print a({ -href=>"Enter.pl/Login=$login }, "New Record"); In navigating the application I hit "Edit Record" and reach the EditLab script with no problem. Coming back doesn't work. The bar at the top of the window informs me that I am trying to go to http://mydirectory/EditLab.pl/EnterLab.pl. What I am trying to do, of course, is to Edit a record using the code in Edit record and then to allow the user the option of entering a new record. The application is a bit complex -- each of these files has 1500 to 2000 lines of code. While I am at it, how does redirect work? I do print redirct({-location = mynewlocation}) and just get a message with a code and the information that the url is relocating. Thanks, Mary Anderson -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>