Forum Home
Press F1
 
Thread ID: 92289 2008-08-04 22:18:00 Site now works in IE but not Firefox w/PHP SessionID Chilling_Silence (9) Press F1
Post ID Timestamp Content User
694970 2008-08-04 22:18:00 Hi all,

So this site I'm putting together for a friend has been a real challenge, but nothing like a bit of brain-strain in the morning to get the cogs into gear ;)

Anyways, so this website now works 100% in IE 6 & 7, however Firefox has issues when trying to pass the PHP Session variables :(

So Ive changed the page "order" a little, so as they flow through the website, it happens like this:
cstep1.php
cstep1_process.php
cstep2.php
cstep2_process.php
cstep3.php
cstep3_submit.php
cstep4.php

(the c at the front stands for the "path" they take, there's two sets of questions)
Ive done the cstep1_process, cstep2_process so that it submits the variables and redirects them to a new page, which allows the user to go back without getting the "This page contains submitted information and must be refreshed" popup all the time.

Now if you tick Yes for all of them, you should get 12 out of 14 - Which is correct.
In Firefox, you get 6 out of 14, which is wrong, because its not passing the answers from the first page. I can tell this, because there is an email generated on cstep3_submit.php which has the answers chosen.

Now its working 100% in IE, all questions come through, but *not* in Firefox now?
Any ideas what would be causing this? The code *appears* to be fine from what I can see going over it, and the fact its working in IE is encouraging.

So the code looks like this in cstep1_process.php
<?php
session_start();
/* Form Processing Here */
$_SESSION['q1']=$_POST['q1'];
$_SESSION['q2']=$_POST['q2'];
$_SESSION['q3']=$_POST['q3'];
$_SESSION['q4']=$_POST['q4'];
$_SESSION['q5']=$_POST['q5'];
$_SESSION['q6']=$_POST['q6'];
$_SESSION['q7']=$_POST['q7'];
ini_set('session.cache_limiter', 'private');
/* Redirecting */
header('Location: www.riskybusiness.co.nz);
?>

Any ideas? Or do I needa post some more of the code used?

Many thanks guys :)


Chill.
Chilling_Silence (9)
694971 2008-08-04 22:36:00 Interestingly enough, it works 100% in Opera too.. just not Firefox?? :-/ Chilling_Silence (9)
694972 2008-08-05 04:01:00 The quiz appears to work fine for me in FF3.

I didn't submit the answers though. :D
wratterus (105)
694973 2008-08-05 04:12:00 Although a little off topic, I had an issue with a CSS problem which manifested itself in FF2 only - was fine in FF3, IE6/7, Opera, Safari. Took me weeks to get that sorted out. somebody (208)
694974 2008-08-05 04:33:00 Give me a call tm morning and I'll help you get it sorted. Note also that's extremely inefficient code. A single statement would suffice, or a three-line loop if you don't want to save all of $_POST. Erayd (23)
1