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

 How to add a parameter to the Return Page for a Button?

Print topic Send  topic

Author Message
dawber

Posts: 25
Posted: 08/15/2005, 3:04 AM


The "Add" button in this form performs an "Insert" operation
and the Return Page is set to "my_menu.ccp" which is
http://192.168.4.5/my_menu.php

I would like to add a (link) parameter "unit_id" to
the Return Page so that looks like
http://192.168.4.5/my_menu.php?unit_id=186


I understand that I am dealing with a Button and not a Link.
So how do I add a parameter to the Return Page for this Button?

View profile  Send private message
DonB
Posted: 08/16/2005, 8:19 AM

You would want to modify the $Redirect variable by calling the CCAddParam()
function in the OnClick (Server) event of the button. If you look at the
main .php file of that page, you will find an example to use as a starting
point.

--
DonB

http://www.gotodon.com/ccbth


"dawber" <dawber@forum.codecharge> wrote in message
news:5430068ba0e0d4@news.codecharge.com...
>
> The "Add" button in this form performs an "Insert" operation
> and the Return Page is set to "my_menu.ccp" which is
> http://192.168.4.5/my_menu.php
>
> I would like to add a (link) parameter "unit_id" to
> the Return Page so that looks like
> http://192.168.4.5/my_menu.php?unit_id=186
>
>
> I understand that I am dealing with a Button and not a Link.
> So how do I add a parameter to the Return Page for this Button?
>
>
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>

peterr


Posts: 5971
Posted: 08/16/2005, 1:42 PM

Another good example might be the "Multi-Step User Registration" at http://examples.codecharge.com/ExamplePack/MultiStepReg...trationGrid.php. It shows how to add the last inserted key to a form after it is submitted.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
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.

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login


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