Delphi For PHP Forums    


Go Back   Delphi-PHP Forums > Programming > PHP - Code
Forum Jump Register FAQ Members List Downloads Search Today's Posts Mark Forums Read

PHP - Code PHP programming - Ask questions and help people with PHP code. If you are stuck and need help, this is where you ask for help.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23rd July 2009, 19:08
D4PHP Enthusiast
 
Join Date: Apr 2007
Location: Milano
Posts: 182
goitalia is on a distinguished road
Default post result differ from ie and ffox or crhome

hi,
i have a unit this:
PHP Code:
<?php
require_once("vcl/vcl.inc.php");
//Includes
use_unit("forms.inc.php");
use_unit("extctrls.inc.php");
use_unit("stdctrls.inc.php");

//Class definition
class Unit12 extends Page
{
       public 
$Panel1 null;
       public 
$Button1 null;
       function 
Unit12Create($sender$params)
       {
       
$b=1;


       }

       function 
Panel1Show($sender$params)
       {
       echo <<<CODE
       <button class="Button" type="submit" name="Btn_index" value="Btn_login">
                                              <span class="btn">
                                                  <span class="l"></span>
                                                  <span class="r"></span>
                                                  <span class="t">login</span>
                                              </span>
                                        </button>
CODE;

       }

}

global 
$application;

global 
$Unit12;

//Creates the form
$Unit12=new Unit12($application);

//Read from resource file
$Unit12->loadResource(__FILE__);

//Shows the form
$Unit12->show();

?>
if i execute under firefox the post and the result of $_POST['Btn_index'] is what i expect. if i execute under IE the $_POST['Btn_index'] is not what i excpect. Did somebody can help me to know why ?

To know simply put a break point at $b = 1; and whatch what $_POST contains under Ie and Firefox.
Thank's for help.
Paolo.

PS: no matter about the CSS the result is the same with or w/out the CSS.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11th August 2009, 16:14
D4PHP Guru
 
Join Date: Nov 2007
Posts: 237
u.masotti is on a distinguished road
Default

Quote:
Originally Posted by goitalia View Post
if i execute under firefox the post and the result of $_POST['Btn_index'] is what i expect. if i execute under IE the $_POST['Btn_index'] is not what i excpect. Did somebody can help me to know why ?
Don't know if you resolved, but IE 6, IE 7 and IE 8 behaves sometimes differently among them and others browser. IE 8 has a "compatibility" flag to activate...
Differences are often in rendering (the "margin" bug) and sometimes in the default order of event execution and scripting language.
Maybe there are updates in some public domain library that helps.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 04:51.




Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0 ©2009, Crawlability, Inc.
Copyright © 2004 - 2009, G&J Solutions Ltd. All Rights Reserved. terms of use