CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> Archive -> CodeChargeStudio.Discussion

 PHP after insert pass parameter

Print topic Send  topic

Author Message
wanaka
Posted: 05/20/2003, 7:21 AM

I have a insert page for user to insert new contact. After click the insert
button user will be forward to another page and I need to pass the primary
key of the new inserted record to the second page.

From CCS after insert event, so far I have done the following.

global $contact_person;
global $DBmwsdb;
$lastname = $contact_person->lastname->GetValue();
$firstname = $contact_person->firstname->GetValue();
$SQL="select cpid from contact_person where lastname=" . "'$lastname'" . "
AND firstname=" . "'$firstname'";
$DBmwsdb->query($SQL);
$fldcpid = $DBmwsdb->f(cpid);


Now I have problem how to post cpid as part of the URL I need a url like
this mypage.php?cpid=123


   


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

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


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