Jump to content

What the... PHP and IE incompatible?


highaspen

Recommended Posts

Here is the code that is writing to the DB

----------------------

while($row= mysql_fetch_array($rs) )

{

 

if (!$row['call1']){

$sql6="UPDATE xocai SET call1='$callid' WHERE id='$id'";

$rs6=mysql_query($sql6,$conn)

or die("Could not execute query". mysql_error());

header ("location:../../membersignup3.php?id=$id&org=$org");

exit();

-----------------

 

Site link is: www.remindem.com/mxi Set up a membership (first option) and I'm having trouple on the second page (membersignup3.php)

So are you doing $_POST['callid']? You need to access it correctly.

Browsers do not influence PHP, the only thing that they affect is stuff like cookies - not MySQL.

There has to be another problem than the BROWSER. Don't worry about that for now, just look at the errors.

Add this to the top of your pages:

ini_set('display_errors', 1);
error_reporting(E_ALL);

 

Edit: Yeah, IE probably doesn't submit images. Make it a hidden field.

Okay.. getting somewhere now... I think. Here is what I got.

-------------

 

Notice: Undefined variable: list3 in /var/www/vhosts/remindem.com/httpdocs/mxi/membersignup3.php on line 231

 

Notice: Undefined variable: list4 in /var/www/vhosts/remindem.com/httpdocs/mxi/membersignup3.php on line 261

 

-----------

Okay I think I know what is going on... I'm querying the DB to see which fields are empty. by doing this:

--------------

$call1 = $row['call1'];

$call2 = $row['call2'];

$call3 = $row['call3'];

$call4 = $row['call4'];

$call5 = $row['call5'];

$call6 = $row['call6'];

$call7 = $row['call7'];

$call8 = $row['call8'];

$call9 = $row['call9'];

$call10 = $row['call10'];

--------------

 

if a field is empty it is saying it is "undefined" right? so I should set a default value in the DB then compaire that? right?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.