I am creating a query form and let the user to enter the keyword from the form. Then the query form will bring to the next page where I carry the variable created in the query form to the next page. The excerpt code for the new page is as folows:
//received variable
$abc1=$_POST['querykeyword'];
$querystring = '
Prefix try <http://www.semanticweb.org/ontologies/2009/5/test.owl#>
SELECT ?name ?age
WHERE
{ ?url try:has-name ${"abc1"} ?name
?url try:has-age ?age }';
However, it did not give the output. Can anybody help?