This is a discussion on Problem with $_GET within the PHP General forums, part of the PHP Programming Forums category; I have a URL to a test file which is: http://localhost/gallery/mypictures/...p?houseno=test The simple code ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I have a URL to a test file which is:
http://localhost/gallery/mypictures/...p?houseno=test The simple code in untitled.php is: <?php $path=$_GET['$house']; echo $path; echo $houseno; ?> However, the output is: "test" and not: "testtest" as anticipated. I am trying to get the variable into a custom function without any success. Can anyone help? |
|
|||
|
Oops! Just spotted the obvious .. the variable is $house and not
$houseno! googleaccount@stephenlayton.co.uk wrote: > I have a URL to a test file which is: > http://localhost/gallery/mypictures/...p?houseno=test > > The simple code in untitled.php is: > <?php > $path=$_GET['$house']; > echo $path; > echo $houseno; > ?> > However, the output is: > "test" > and not: > "testtest" > as anticipated. > > I am trying to get the variable into a custom function without any > success. Can anyone help? |