CodeCharge Studio
search Register Login  

Visual Web Reporting

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

YesSoftware Forums -> CodeCharge Studio -> PHP

 url rewrite

Print topic Send  topic

Author Message

Posts: 13
Posted: 03/25/2016, 10:45 PM

when you have a form say signup.php

it post http://yourdomain/signup.php?cssForm

is there anyway to mod rewrite


I have tried several times using mod rewrite but was un successful
View profile  Send private message
Posted: 03/26/2016, 9:12 AM

CodeCharge looks for the ccsForm parameter along with the form name in
order to process the applicable events and actions from that form. If
you use mod_rewrite then that will occur *before* CodeCharge has had a
chance to check for that parameter.

Instead, let the page process as normal, then when done choose an event
to rewrite using PHP, such as After Insert, After Update, etc. Ex:

//CompanyRecordForm_AfterInsert @78-E2F37004
function CompanyRecordForm_AfterInsert(& $sender)
$CompanyRecordForm_AfterInsert = true;
$Component = & $sender;
$Container = & CCGetParentContainer($sender);
global $CompanyRecordForm; //Compatibility
//End CompanyRecordForm_AfterInsert

//Custom Code @127-2A29BDB7
// -------------------------

global $FileName, $Redirect;

//Redirect back to the page in edit mode.
$QueryString = CCGetQueryString("QueryString", "");
$QueryString = CCRemoveParam($QueryString, "ccsForm");
$QueryString = CCAddParam($QueryString, "action", "Edit");
$QueryString = CCAddParam($QueryString, "id", $CompanyID);

$Redirect = $FileName . "?" . $QueryString;

// -------------------------
//End Custom Code

//Close CompanyRecordForm_AfterInsert @78-F737F351
return $CompanyRecordForm_AfterInsert;
//End Close CompanyRecordForm_AfterInsert

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

PHP Reports

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

Home   |    Search   |    Members   |    Register   |    Login

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