[PHP] PHP Links
I'm trying to find out how make following happen Example: http://www.example.com/test.php?id=20 What makes this happen and how do I make it. Thanks Thomas -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Links
I'm trying to find out how make following happen Example: http://www.example.com/test.php?id=20 What makes this happen and how do I make it. Thanks Thomas Thomas: It's unclear as to what you want. To make this happen, you click it: http://www.example.com/test.php?id=20 To make this happen in html for others to click, you can use: a href=http://www.example.com/test.php?id=20;/a To make this happen in html with php for others to click, you can use: a href=http://www.example.com/test.php?id=?php echo($value);?/a Just where and what are you trying to do? tedd -- http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Creation and transfer of object thru session
Hi, I am creating an object from a Web Service. Throughout a session I would like to keep the object that was created in the beginning of the session. The reason for this is that the creation of the object takes some time because of the communication with the Web Service. As I see it, there are two possibilities: 1. Save the object in the $_SESSION variable, because the objects are not big 2. Serialize the object and save it to a database, and use $_SESSION to keep reference to the database What is to prefer? What are the benefits of using 1 against using 2? Is there any 3rd option? Best regards, Peter Lauri -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Oject passed via session error
Hi, I do this: ?php session_start(); require_once('classes/ns_cart.class.php'); if(!isset($_SESSION['ns_cart'])) $_SESSION['ns_cart'] = new NScart(); ? The output will be the following with print_r of the $_SESSION: Array ( [ns_cart] = nscart Object ( [myProducts] = Array ( [0] = ns_product Object ( - When I reloads the page I get the following: Array ( [ns_cart] = __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] = nscart [myProducts] = Array ( [0] = __PHP_Incomplete_Class Object - What is this? I am confused... /Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Oject passed via session error
You need to declare the class before you call session_start(). Otherwise it can't create the object properly. Peter Lauri wrote: Hi, I do this: ?php session_start(); require_once('classes/ns_cart.class.php'); if(!isset($_SESSION['ns_cart'])) $_SESSION['ns_cart'] = new NScart(); ? The output will be the following with print_r of the $_SESSION: Array ( [ns_cart] = nscart Object ( [myProducts] = Array ( [0] = ns_product Object ( - When I reloads the page I get the following: Array ( [ns_cart] = __PHP_Incomplete_Class Object ( [__PHP_Incomplete_Class_Name] = nscart [myProducts] = Array ( [0] = __PHP_Incomplete_Class Object - What is this? I am confused... /Peter -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP Links
This one time, at band camp, Thomas Bonham [EMAIL PROTECTED] wrote: I'm trying to find out how make following happen Example: http://www.example.com/test.php?id=20 in test.php put this code ?php echo $_GET['id']; ? Kevin -- Democracy is two wolves and a lamb voting on what to have for lunch. Liberty is a well-armed lamb contesting the vote. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php