Hans
|
| Posted: 10/15/2002, 9:54 AM |
|
Hello!
Refering to: http://www.gotocode.com/art.asp?art_id=80&
was very helpful and i did manage to get it working using PHP and the "$sActionFileName .= "?pk_field=".$last;" method ... unfortunately this displays the record id on the confirmation page and since data is user_id sensitive i cannot have someone just change the id and see the rest of the records 
so i tried it with "set_session("pk_field") = $last;" but the form on the next page is not able to read this value through input tab in the form properties ... the settings are:
field: company_id
variable: pk_field
type: session
data type: number
operation: =
required: checked
trans: tried with both checked and unchecked
do i have to make entries in the sql tab as well?
Thanks!
Hans
|
|
|
 |
TonyE
|
| Posted: 10/15/2002, 10:30 AM |
|
Try this
This is code from my form when submitting an order.
It is placed at after insert
$infoID = mysql_insert_id(); // lookup of the last id number
global $Redirect;
$Redirect .= "info_id=". $infoID;
CCSetSession("infoID", $infoID); // Sets variable into Session.
Your next form you can filter by session id. (infoID) Even if the id is displayed on the url changing it will have no effect.
Hope this helps
TonyE
|
|
|
 |
Hans
|
| Posted: 10/20/2002, 5:17 AM |
|
Hi!
nice idea! i'll give it a shot rite away!
Thanx!
Hans
p.s. sorry for the delay in the reply ... but unforseen circumstances kept me away from the computer ...
|
|
|
 |
|