Hi guys, this may sound a very stupid question but how do I do the fol;owing:
SOURCE PAGE
I have a link on a page which is coded like this:
<a href=\"accomodation/php/accomchoice.php?idname="<?= $row["id"] ?>"><?= $row["id"] ?></a>
$row["id"] is a field in my database
when i click on the link it picks up the content of the field with no problem.
The link takes me to "accomchoice.php". Agian no problem
TARGET PAGE
the QUERY I am running is:
$query = "SELECT id, location, name, street, suburb, town, county, postcode, tel, fax, email, web, tariff FROM accom WHERE id = '$http_get_vars[idname]'";
The error I get is:
Parse error: parse error in /homepages/41/d43000764/htdocs/TraveltoEngland/Accomodation/PHP/accomchoice.php on line 154
All I am trying to do is pick up the contents of a field on the SOURCE PAGE and direct the link to a record on the TARGET PAGE using the
idname="<?= $row["id"] ?>"><?= $row["id"] ?></a>
from the link.
What am I doing wrong.
HELP PLEASE
DCJ