Re: Separating HTML code from PHP code

From: Date: Sat, 10 Mar 2007 20:25:16 +0000
Subject: Re: Separating HTML code from PHP code
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-250214@lists.php.net to get a copy of this message
Don Don escribió:
Hi all, i am building a system using php and am trying to separate the html codes from the php codes (i.e. placing them in separate files), I am from the java struts/spring background and seem to be finding it difficult doing that at the moment with php. I've got a registration form in html with the action pointing to a separate php file that will process the form when submitted. when i want to output errors or messages, its currently being outputed in the resulting code generated by the php file. What i would like is to return to the html page and display the messages there. Can someone help me with ways of doing this pls ?
Use a template engine, like HTML_Template_IT, or if you want some compleity in your system chack smarty. -- select 'mmarques' || '@' || 'unl.edu.ar' AS email; --------------------------------------------------------- Martín Marqués | Programador, DBA Centro de Telemática | Administrador Universidad Nacional del Litoral ---------------------------------------------------------

« previous php.general (#250214) next »