PHP help please
#1
Hi,
I'm trying to include a file and pass a variable.
This works, and passes addname with the value of fred
include('http://www.ipaqsoft.net/php/calladd.php?addname=fred');
However if I want to pass a variable, how do I do that? This doesn't work:
include('http://www.ipaqsoft.net/php/calladd.php?addname=$addname');
calladd.php things $addname is $addname and not the value I entered!
cheers,
greg
I'm trying to include a file and pass a variable.
This works, and passes addname with the value of fred
include('http://www.ipaqsoft.net/php/calladd.php?addname=fred');
However if I want to pass a variable, how do I do that? This doesn't work:
include('http://www.ipaqsoft.net/php/calladd.php?addname=$addname');
calladd.php things $addname is $addname and not the value I entered!
cheers,
greg