[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 blah But when I send the sessionid within a form in a hidden tag () the session stops. For my session working correct i have to send my sessionid at every link and at every submit. My question now is, how can i send the sessionid by

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. session_start(); ?> $id = session_id(); echo $i

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: Sent: Saturday, January 08, 2005 11:36 AM Subject: Re: [PHP-DB] Problem using session bu submitting

[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 > $value=mysql_escap