I've got a site that is parsing php as HTML. I have a simple form which passes variables to a handler page. The handler page sets the form variables as session variables and depending on the variables sent by the form, it redirects to an apporpriate landing page. That landing page wil include some of the information set a session variable i.e. first name & surname.
Here's my question. I come from a coldfusion background and with an html page I can insert the following to display the correct values in the landing page form:
<input type="text" name="firstname" value"<cfoutput>#session.firstname#</cfoutput>"><br>
<input type="text" name="surname" value"<cfoutput>#session.surname#</cfoutput>">
There are no additional tags on the page and coldfusion script is parsed as HTML.
I've got most of this woked out but I cannot see how to include a php session variable with an HTML page with out having to wrap the whole page in opening and closing php tags which then generates an error because of the on page HTML.
Does this make sense, cAn anyone help?