[ale] Transferring a variable

David Tomaschik ozone at webgroup.org
Wed Aug 15 13:15:05 EDT 2007


Terry Bailey wrote:
>
>
> Hi,
>  
> I am using the following code in a Web page generated on-the-fly by a
> cgi Perl script.
>  
> <a href = http://www.abcxyz.com/cgi-bin/access.cgi?$transfer>$name</a
> <http://www.abcxyz.com/cgi-bin/access.cgi?$transfer%3e$name%3c/a> >
>
> In am running Cygwin on Windows Server 2003.
>
> I want to use the results of the transfer in $ENV{'QUERY_STRING'}.
>  
> In this case, $transfer contains a file name and sometimes this name
> contains blanks.  Is there any way to transfer the whole file name
> including blanks?
>  
>  
> Thanks,
>  
> Terry Bailey
>  
> ------------------------------------------------------------------------
Try quoting the URL as in <a href='http://.../access.cgi?$stransfer'>. 
Doing it without the quotes would lose the spaces as they would be
interpreted as additional parameters to the <a> tag.  Also, the quotes
are necessary for XHTML compliance.

David



More information about the Ale mailing list