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?
|
|
|
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 |
|
|