Hi. I created logic that generates hard-coded php pages. I have to add one more piece of logic to the top of the generatied page so I can pass a category value to it.
Here's the line I am trying to add.
$texttoaddGet = "<? $categoryselected = $_GET['category'];?>" ;
The generated page will display the value in $categoryselected at the top of the page.
When I run the generation logic, I get an error on this line (line 447). Without this line, the code runs without a probelm and the page is generated correctly but then I can't pass the category value from pages that link to the generated page.
Here's the error:
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /homepages/40/d228880029/htdocs/njbridetobe/new/webadmin/advertiser_rec_submit.php on line 447
I have tried writing this line many diferent ways but can't seem to hit on what I am doing wrong.
Is there a special way I have to handle this line because it has a "$_GET" in it?
Thanks for your help.