[PHP] PHP Links

2006-03-25 Thread Thomas Bonham
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

2006-03-25 Thread tedd
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

[PHP] Creation and transfer of object thru session

2006-03-25 Thread Peter Lauri
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

[PHP] Oject passed via session error

2006-03-25 Thread Peter Lauri
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 (

Re: [PHP] Oject passed via session error

2006-03-25 Thread Chris
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

Re: [PHP] PHP Links

2006-03-25 Thread Kevin Waterson
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