[PHP-DB] Problem using session bu submitting the session id through a form

2005-01-08 Thread Henk Jan Wils
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

Re: [PHP-DB] Problem using session bu submitting the session id through a form

2005-01-08 Thread graeme
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 =

Re: [PHP-DB] Problem using session bu submitting the session id througha form

2005-01-08 Thread Henk Jan Wils
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

[PHP-DB] String Parsing/Escaping

2005-01-08 Thread Alexander Mueller
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