RE: [Phplib-users] phplib templates
Brought to you by:
nhruby,
richardarcher
From: Floor V. <ma...@fl...> - 2001-10-23 07:41:51
|
Thanks for all your help. I figured out that I am using the same var-names in the templates as in the PHP-code (no problem without templates). When you submit data the data from the PHP-vars is submitted instead of the HTML-data. Changing the var-names in the template is a solution (this works), but I think it's a dirty one. Isn't there a workaround. Or do I have to parse back the values from the template? I also tried including session.inc but it didn't work out. Thank you very much for the advice on the database connection. As soon as I finish the application i'll start working on the security! -----Oorspronkelijk bericht----- Van: php...@li... [mailto:php...@li...]Namens Layne Weathers Verzonden: maandag 22 oktober 2001 23:43 Aan: php...@li... Onderwerp: Re: [Phplib-users] phplib templates > I am writing a project in PHP and I want to use templates > (phplib) to keep > my html separated from code. > > Passing values from the php-code to the template works perfect! > Now I am trying to submit values in the form, but this is a > problem. When I > submit the old values in the form are submitted instead of the changed > values. > > What am I doing wrong?? It sounds like your browser is caching the results of the page - you wouldn't happen to be using Internet Explorer 5 for Windows, would you? This problem is addressed in PHPLib's session handling classes. Look in session.inc at lines 462 to 466 - either use PHPLib's sessions or make sure those lines get included into the beginning of each page in your project. > Any help would be appreciated. > > // code included in attachment. I would also recommend using PHPLib's nice database class and strongly encourage you to use a non-root mysql user for your websites. Layne Weathers Ifworld Inc _______________________________________________ Phplib-users mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phplib-users |