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)

Link to comment
Share on other sites

In the forum, the code tags.

Write [.code][./code] around your code, without the .s

 

Try adding this:

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

print $sql6;

 

See if it is what you think it should be.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

 

-----------

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.