Variable formatting problem using sessions...

From: Date: Tue, 27 Jan 2009 00:37:48 +0000
Subject: Variable formatting problem using sessions...
Groups: php.general 
Request: Send a blank email to php-general+get-287193@lists.php.net to get a copy of this message
I'm using an "OnClick" routine to set a session variable before I go to another page. onClick=<?php $_SESSION['local_part']= 'rick'; ?> works fine but I need a variable where "rick" is I've tried onClick=<?php $_SESSION['local_part']= $local_part; ?> and other variations but it doesn't work. Can anybody tell me what the proper formatting is to get this to resolve correctly? Thanks Rick

« previous php.general (#287193) next »