CodeCharge Studio
search Register Login  

Visual PHP Web Development

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

YesSoftware Forums -> Archive -> GotoCode Archive

 problems with PHP session variables

Print topic Send  topic

Author Message
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 ...


   


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.