CodeCharge Studio
search Register Login  

Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> General/Other

 How do you remove the '?' when removing parameters?

Print topic Send  topic

Author Message
j_odijk

Posts: 2
Posted: 03/06/2004, 7:55 AM

Hi all,

I have a reply.php page with a form with a submit button. There are 2 parameters in the URL which I use to fill the form.

When the user clicks the submit button it goes to the following return page:
index.php?page=log_reply&log_id=". CCGetFromPost('reply_log_id', '') ."

In the Data-properties of the submit button I have set the remove parameter to the 2 parameters which are used on the reply.php page.

Now the problem:
The parameters are removed but the '?' isn't. This is what happens in the URL:
index.php?page=log_reply&log_id=11?
--> log_id=11? is an invalid value and I get a an error-message.

How do I remove the '?' ????

Thanks in advance!

View profile  Send private message
Si Cranmer
Posted: 03/08/2004, 12:46 AM

This is a good one. I was wondering myself if anyone had found a way.
Manuel
Posted: 03/15/2004, 1:10 PM

I think you have a mistake.

The way to do this (perhaps i've used) is:

global $Redirect;

$Redirect = "index.php?page=log_reply&log_id=". CCGetFromPost('reply_log_id', '');

That's what you have:
index.php?page=log_reply&log_id=". CCGetFromPost('reply_log_id', '') ."
Si Cranmer
Posted: 03/16/2004, 6:09 AM

Its not a hand codeing problem,

This happen when you utilise the remove parameters feature and enter a list of all parameters to be removed. This the changes the return page call from
index.php?1=&2=&3=
to
index.php?
lneisius

Posts: 29
Posted: 03/16/2004, 10:37 AM

Well after looking into your question I think the easiest way is in the properties manger. You can set the link not to retrieve any information from post or get and it will not include the "?". I always clear the retrieve paramenters to pages that I don't want users to be able to access info by passing url parameters.
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.