faqts : Computers : Programming : Languages : PHP : PHP Authoring

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

Entry

How to pass a variable (id) from one query/doc.php to another to insure integrity of relationship?

Oct 8th, 2006 10:00
Matthew Wilkinson, Ramona M.,


You will probably have to pass the id either as a session cookie, by using:
session_start();
$_SESSION['id'] = 'theidgoeshere';
or as a GET parameter:
query/doc.php?id=theidgoeshere
alternatively, you can use a cookie:
setcookie('id', 'theidgoeshere');