Hi,
My session only seems to work when I use the link-tag (like a
href=nextpage.php?PHPSESSIONID=blahblahblah/a
But when I send the sessionid within a form in a hidden tag (input
type=hidden name=phpsessionid value=blahblah) the session stops. For my
session working correct i have to send my
Hi,
Not certain what is happening try the following script. On my machine
the form retains the session ID. Note the sending the ID as a GET is
only done for cross checking. You can remove it and there will be no
change in the display.
?php
session_start();
?
html
body
?php
$id =
thanx, i did use the GET method to send a form. with the POST i works!!!
thanks again!
- Original Message -
From: graeme [EMAIL PROTECTED]
To: Henk Jan Wils [EMAIL PROTECTED]
Cc: php-db@lists.php.net
Sent: Saturday, January 08, 2005 11:36 AM
Subject: Re: [PHP-DB] Problem using session
Hi,
below are three versions of an SQL call along with escaping the passed
value.
$value=mysql_escape_string($_POST['value']);
mysql_query('SELECT * FROM table WHERE field='.$value.'');
+ Fastest Code
- Con: Bad Readability, Value needs to be escaped separately