PHP code within TPL file

Is there a way to put a short PHP script within TPL file?



```php session_start();

$_SESSION[“searchnotfound”]=$item; ```



What I’m trying to do is capture part number user entered

that could not be found when they searched for it and have

sessions feature capture it so that my add on code will read it

and do alternative search with a plug in i made…

Any suggestions\solutions would be greatly appreciated



-Peter

You should use


{php}

[COLOR="Red"]YOUR CODE HERE[/COLOR]

{/php}

[quote name=‘baballuci’]You should use


{php}

[COLOR="Red"]YOUR CODE HERE[/COLOR]

{/php}
[/QUOTE]



Thank You!!