Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Success.tpl won't display in Mozilla, will in IE

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
enirp
Smarty Rookie


Joined: 06 Nov 2004
Posts: 13

PostPosted: Sun Nov 07, 2004 9:26 am    Post subject: Success.tpl won't display in Mozilla, will in IE Reply with quote

Ok, I could really use some help... I'm lost. The wonders of why in one and not in another have passed me finally. This is my first site using the smartyValidate (pretty nifty btw), I'm going by the example php, modified for my site.



Code:

<?php
    session_start();
//session_register();
    // you will need to setup Smarty if
    // the defaults are not correct.

    require('libs/Smarty.class.php');
    require('libs/SmartyValidate.class.php');

    $smarty =& new Smarty;

    // required initialization
    SmartyValidate::connect($smarty);

    if(empty($_POST)) {
       $smarty->display('school_reg.tpl');
    } else {
       // validate after a POST
       if(SmartyValidate::is_valid($_POST)) {
           // no errors, done with SmartyValidate
           SmartyValidate::disconnect();
           $smarty->display('success.tpl');
       } else {
           // error, redraw the form
           $smarty->assign($_POST);
           $smarty->display('school_reg.tpl');
       }
    }

?>



When My form validates using Mozilla Firebird the success.tpl will not display; however, if I use *cough* IE it displays fine.... my form is submitted simply with

Code:

<form action="register.php" method="post">
 ..... Form fields, html formatting, and smarty validates here ....
<input type="submit" value="Submit">
</form>


I have no clue why its working in ie and not mozilla, when I used the example that came with the validate class in mozilla that worked fine.

Any Suggestions?
Thanks
Rolling Eyes
Back to top
View user's profile Send private message
Major
Smarty n00b


Joined: 19 Aug 2003
Posts: 3

PostPosted: Sun Nov 07, 2004 11:29 am    Post subject: Reply with quote

I think it's not a Smarty error. Can you post your success.tpl?

cu
Major
Back to top
View user's profile Send private message
enirp
Smarty Rookie


Joined: 06 Nov 2004
Posts: 13

PostPosted: Sun Nov 07, 2004 7:59 pm    Post subject: Reply with quote

It's simple a line of text

"Success" no Html formatting at all.
Back to top
View user's profile Send private message
enirp
Smarty Rookie


Joined: 06 Nov 2004
Posts: 13

PostPosted: Sun Nov 07, 2004 8:56 pm    Post subject: Reply with quote

I also checked it in Safari, works fine there. So far just not working in mozilla.

I'm starting to think that there is a goof somewhere in the html that upsets mozilla? But it seems that it would at least display the stupid thing.

Shocked

success.tpl
Code:

{include file="header.tpl"}
<br><br><br>
<div align="center"><p>Your form submission succeeded.</p></div>
<br><br><br>
{include file="footer.tpl"}


The page is at http://www.ecst.csuchico.edu/mim/site/smarty/register.php

With a template directory of http://www.ecst.csuchico.edu/mim/site/smarty/templates

Any help is GREATLY appreciated. This is site is for a non profit org with a huge event coming up. We have hundreds of teachers registering on it soon, and I need it to work in -all- browsers. Not just IE.. Exclamation
Back to top
View user's profile Send private message
enirp
Smarty Rookie


Joined: 06 Nov 2004
Posts: 13

PostPosted: Sun Nov 07, 2004 9:48 pm    Post subject: Reply with quote

Rebooted my stupid computer, works fine..... Four hours down the drain
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP