#cgi.querystring#
<cfif Len(CGI.querystring)>
<cfset newURL = "#cgi.script_name#?
#cgi.querystring#&renderforprint=1">
<cfelse>
<cfset newURL = "#cgi.script_name#?renderforprint=1">
</cfif>
Duncan Cumming
IT Manager
http://www.alienationdesign.co.uk
mailto:[EMAIL PROTECTED]
Tel: 0141 575 9700
Fax: 0141 575 9600
Creative solutions in a technical world
----------------------------------------------------------------------
Get your domain names online from:
http://www.alienationdomains.co.uk
Reseller options available!
----------------------------------------------------------------------
----------------------------------------------------------------------
"Lovelock,
Richard J" To: "'cflist'" <[EMAIL PROTECTED]>
<richard.lovelock cc:
@cgey.com> Subject: [ cf-dev ] CGI Variable
Problem
10/11/2003 14:05
Please respond to
dev
Afternoon guys
We are using a content management system which uses a "View Printer
Friendly
Page" link on the footer. If this is clicked, the page is resubmitted with
a
variable: "?renderforprint=1" appended to the URL.
This is achieved by using #cgi.script_name#?renderforprint=1 in the code
for
the link.
This works fine if the page URL has no other URL variables but if there are
some they do not get picked up when the link is clicked and it produces
some
nice red CF error code on the web complaining about the missing variables.
I need to adjust this #cgi.script_name# to another CGI variable (I am
guessing) which picks up the parameters on the end
i.e. with http://wccdevaq01/yourcouncil/viewcouncillor.cfm?cID=4749
<http://wccdevaq01/yourcouncil/viewcouncillor.cfm?cID=4749> I need it to
pick up the viewcouncillor.cfm?cid=4749 then append &renderforprint=1
I have tried using #cgi.url# but that is not picking my page name up and
url
variables up. What should I be doing or using to achieve this?
I also need to do a CFIF test to see if there are any URL variables on the
end so that I know whether to append ?renderforprint=1 (if no url
variables)
or &renderforprint=1 if URL Variables already there. How can I test for
these?
_______________________________________________________<?xml:namespace
prefix = o ns = "urn:schemas-microsoft-com:office:office" />
* Regards,
Richard Lovelock
Westminster City Council - Web Support
Cap Gemini Ernst & Young
Southbank
95 Wandsworth Road
London
SW8 2HG
( 0870 906 7482
_______________________________________________________
=======================================================
This message contains information that may be privileged or confidential
and is the property of the Cap Gemini Ernst & Young Group. It is intended
only for the person to whom it is addressed. If you are not the intended
recipient, youare not authorized to read, print, retain, copy, disseminate,
distribute, or use this message or any part thereof. If you receive this
message in error, please notify the sender immediately and delete all
copies of this message.
=======================================================
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]