Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
beefo #1
Remove a var from URL
Hey'all, I'm looking for a little hint that would be usefull for me. I
sometimes use the technique to add a URL var to include a file, for example a
link that goes to index.cfm?inc=page.cfm redirect to index.cfm which includes
page.cfm... the problem is that I would like to hide this var because if the
user refresh the page, it does the process again and i don't want the page.cfm
to be included again (for example because it does an insert in the
database).... so the cool thing would be to hide inc=page.cfm from the URL so
it would work perfectly ! Is it possible ? Is it possible without making a
redirection...for example Replace(CGI.QUERY_STRING...) and cflocation ? thanks
in advance for your help ! antoine from belgium
beefo Guest
-
How 2 remove url-bar etc...
Hi u guys, I have a question for those who can help me. I want to make a popup when u click on a button but the movie that is playing within HTM... -
remove blanks
Is there a func or a onliner for removing blanks from both ends? I'm using these: $username =~ s/^\s+//; $username =~ s/\s+$//; There got... -
pop-ups-pls help remove
You may also download and run periodically Add-Aware. I don't remember their web site, check Google to find out. The basic version is free, If you... -
How to Remove 'S
> The problem is each time I try to submit any thing that ends in 's eg St a Double up your quotes before entering them into a database... for... -
how to remove a programe from the add/remove list manually
i am using winXP home, i just remove a programe from the start menu(start>>all programes>>name of the programe>>uninstall),but the programe name is... -
beefo #2
Re: Remove a var from URL
Stupid me !!! I have found the answer....perhaps it s not the best way, but it
does work !!
Replace(Replace(CGI.QUERY_STRING,'lang=#Iif(isdefi ned('url.lang'),DE(url.lang),D
E(''))#',''),'&&','&','ALL')
For this example, the VAR i wanted to retrieve is url.lang
beefo Guest
-
beefo #3
Re: Remove a var from URL
Sorry, it seems that it was still bugging when the var was undefined.... so
here is the longest but safest way to do it:
<cfif isdefined('url.lang')>
<cfset newquerystring =
Replace(Replace(CGI.QUERY_STRING,'lang=#Iif(isdefi ned('url.lang'),DE(url.lang),D
E(''))#',''),'&&','&','ALL')>
<cfelse>
<cfset newquerystring = CGI.QUERY_STRING>
</cfif>
<cfoutput>#newquerystring#</cfoutput>
beefo Guest



Reply With Quote

