CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Remove URL Parameters

Print topic Send  topic

Author Message
jamtc

Posts: 18
Posted: 12/01/2008, 2:30 PM

Hi Guys !

I'm having some problem to remove the URL parameter after use it.

I put this "Add URL Parameters" to a Page into "After Inicialize->Custom Code":

  
  
global $FileName;  
  
if (CCGetFromGet("Trecho","") == "")  
{  
header("Location: " . $FileName."?". CCAddParam(CCGetQueryString("QueryString", ""), "Trecho", "Nova Ponte / Emborcação") );  
}  
  

And It's Working fine....

But now (after use it) I want to remove this Parameter and I don't know how.

Can Somebody help me with this?

Thanks...
:-(

_________________
JamTC
:-)
View profile  Send private message
maxhugen

Posts: 272
Posted: 12/01/2008, 4:17 PM

Not sure what you are trying to do?

From your code, you should be returning a URL like:

.../myPage.php?Trecho=Nova+Ponte+/+Emborcacao

Now that you have the page (with the "Trecho" parameter) that you wanted, why do you need to remove this parameter?

Do you have a link on that page that is 'inheriting' the parameter, or what? If yes, check the link's "Preserve Parameters" property. By default it is set to "GET" - you may need to change this to "None".

HTH
_________________
Max
www.gardenloco.com | www.eipdna.com | www.chrisarminson.com
View profile  Send private message
melvyn


Posts: 333
Posted: 12/01/2008, 4:28 PM

See reference for "Preserve parameters" and "Remove Parameters". Both are in the properties panel and they're very straight.
_________________
Melvyn Perez
Puro Codigo
http://purocodigo.com
View profile  Send private message
jamtc

Posts: 18
Posted: 12/01/2008, 6:34 PM

Well...

I created my structure code outside of <FORMs> so I can't reach the "Preserve Parameters" and "Remove Parameters" too.

I guess I do something wrong with this procedure.

But YES maxhugen... I can obtain this below with the code above:

".../myPage.php?Trecho=Nova+Ponte+/+Emborcacao"

And now I want to remove only:

 ?Trecho=Nova+Ponte+/+Emborcacao" 

That because when I leave this page and go to other page that parameter (Trecho) comes together and mess everything.

I saw this function RemoveParam() but I don't know how to do it work.?

I try use this function but without success...

I need help...
:-(

_________________
JamTC
:-)
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.