PDA

View Full Version : Dear IWDN Collegues I hate IE


jos
April 18th, 2006, 18:01
Right, I've said it before, I'll say it again until they've sniped Bill.

I have my website, right www.wuru.nl
It's not finished yet but let me explain what's wrong: MSIE.

Why? I made this 'uber cool super duper image-submit button'
<input type='image' src='./images/web/login_submit.gif' name='sublogin' />

Right, now my php code checks
if(isset($_POST['sublogin'])) {

But it doesn't work... in micro****ingsoft internet explorer....

In firefox it works fine... now I searched some forums and some say that msie sends more data, whatever I don't care, but it makes it not $_POST['sublogin'] but something else I don't know...

Anyone know how to solve this?

Tjobbe
April 18th, 2006, 18:14
Where is this error Jos? Can you provide a URL?

Pauly
April 18th, 2006, 18:16
Not sure I follow, MSIE6 & Fx 1.5 react the same when hitting submit - Appear to load but stay on the same page ...

jos
April 18th, 2006, 18:28
****, i broke it :| wait let me fix it...

edit: fixed!... the FF part... now MSIE

jos
April 18th, 2006, 18:31
Where is this error Jos? Can you provide a URL?

www.wuru.nl

just press login button

Dan
April 18th, 2006, 18:35
if($_POST['sublogin'] != '')

Try that.

jos
April 18th, 2006, 18:56
doesn't seem to work, tried $_POST['sublogin'] and $_POST['sublogin'] != ''

Pauly
April 18th, 2006, 19:07
Notice: Undefined index: useraccess in /home/virtual/site83/fst/var/www/html/includes/menu.php on line 3
I'm no PHP guy but maybe it's a good idea to clean up errors before trouble shooting? Unrelated or not, you never know how IE will react ;)

Dan
April 18th, 2006, 19:10
Maybe

if(array_key_exists('sublogin',$_POST))

?

jos
April 18th, 2006, 19:21
nope :(

Dan
April 18th, 2006, 19:23
Okay, put this at the top of your code:

error_reporting('E_ALL');

and see if you get errors

Christopher Lee
April 18th, 2006, 19:27
I'm getting a bit senile, but I seem to remember something about not being able to use image tags to pass values, that might be why it isnt working... Still looking

Christopher Lee
April 18th, 2006, 19:29
I knew I didn't remember it correctly...

http://www.webhostingtalk.com/showthread.php?t=484750

Quote from me in less forgetful days:


you'll have to test off of either the _x or _y of the image button, as that is what is passed. So you'd have to test array_key_exists for $name_of_button . '_x' because that is what's passed.

jos
April 18th, 2006, 19:32
Okay, put this at the top of your code:

error_reporting('E_ALL');

and see if you get errors

already have that

jos
April 18th, 2006, 19:33
I knew I didn't remember it correctly...

http://www.webhostingtalk.com/showthread.php?t=484750

Quote from me in less forgetful days:

thanks will have to check that out, tomorrow tho, its 7.30 and im still at work. Cya tomorrow!

Christopher Lee
April 18th, 2006, 19:35
Go home! :-)

The funny thing is, Opera and IE are handling it correctly, while FireFox does not.

jos
April 19th, 2006, 13:35
I'm no PHP guy but maybe it's a good idea to clean up errors before trouble shooting? Unrelated or not, you never know how IE will react ;)

Sorry missed your post earlier, but the reason you see those is because I have error_reporting on, and they're just Notice errors and no problem in this case, it would be 'nice' to clean them up, but im lazy.

anyhoo, it worked....sort of.... no it didn't... see the submit button part is working i changed sublogin to sublogin || sublogin_x || sublogin_y <- just to be sure :P

but now its still not working, im still unable to log in for some reason (in IE, again ff works fine) i dont have have an explanation of what the problem is so I'll keep checking my code, if i find the problem and i can't solve it, ill be back... trust me :)

Dan
April 19th, 2006, 18:05
Here's the easy way out..

<form action="index.php?do=login">

:)

(Or you know, you can just check to see if username/password are filled in.)

jos
April 19th, 2006, 19:20
No no, it's already working the 'submit' part, it shows errors now if password is is incorrect, username doesn't excist, no username, no password etc.... this part is working, but the actual part of "hey ur data is legit, ur logged in" is not working, no clue yet why, since in my eyes its all php, and it works in FF...

jos
April 19th, 2006, 19:53
I hope I don't get banned for this but ehm... it started working... I didn't change anything I swear! I was pulling my hair and like, 'ok im gonna test it - one more time -' ... and it worked...