Jump to content

IE7 users can't use my page


koolkat67

Recommended Posts

no image and no javascript

here is the code

if($submit)

{

$db = mysql_connect("mysql", "a", "a");

mysql_select_db("akbhangu");

$blog="sleepyheads";

$sql = "INSERT INTO mainblogcomments (name, location, comment, blog)

VALUES ('$name', '$location', '$comment', '$blog')";

$result = mysql_query($sql);

$sql = "ALTER TABLE mainblogcomments ORDER BY `id` DESC";

$result = mysql_query($sql);

echo "Thank you! Information entered.\n";

mysql_close();

header("Location: /mainblogcomments.php");

}

 

?>

<FORM ACTION="<?php echo $PHP_SELF; ?>" METHOD=POST>

<table>

<tr><td align="right">First name:</td><td align="left"><input type="Text" name="name" width="200"></td></tr>

<tr><td align="right">Location:</td><td align="left"><input type="Text" name="location" width="200"></td></tr>

<tr><td colspan="2">Comments (Remember:Family site so keep it clean):</td></tr>

<tr><td colspan="2"><TEXTAREA NAME="comment" ROWS=5 COLS=40></TEXTAREA></td></tr>

<tr><td align="center" colspan="2"><input type="Submit"name="submit" value=" Enter information"></td></tr></table>

</form>

</div>

<hr />

<div id="blogcomments">

<?php

$db = mysql_connect("mysql", "a", "a");

mysql_select_db("akbhangu");

$result = mysql_query("SELECT * FROM mainblogcomments WHERE blog='sleepyheads'");

?>

<table>

<tr align="center"><td width="500">Comment</td><td width="200">Last Post</td></tr>

<?php

$i=0;

while($myrow = mysql_fetch_array($result))

{

$i++;

if ($i % 2 ==0)

{

?>

<tr align="left" valign="top">

<td><?php echo $myrow["comment"];?></td>

<td>| by <?php echo $myrow["name"];?> in <?php echo $myrow["location"];?><br />| on <?php echo $myrow["date"];?></td>

</tr>

<?php

}

else

{?>

<tr align="left" valign="top">

<td bgcolor="#FFFFCC"><?php echo $myrow["comment"];?></td>

<td bgcolor="#FFFFCC">| by <?php echo $myrow["name"];?> in <?php echo $myrow["location"];?><br />| on <?php echo $myrow["date"];?></td>

</tr>

<?php

}

} ?>

</table>

Hmm, maybe above your if($submit) add:

 

$submit = $_POST['submit'];

 

Then, add a space in this line:

 

<tr><td align="center" colspan="2"><input type="Submit"name="submit" value=" Enter information"></td></tr></table>

 

After [ input type="Submit" ]

 

Yeah, I don't think IE knows what $submit is automatically.

Interesting, I see what you mean now. I can't click it either.

 

Try making a test page with a form/submit button on it, doesn't have to go anywhere or do anything. Make sure to use any CSS you may have on the test page, if you do. If it works there it will factor it down for us :P

 

 

http://www.alaskabhangu.com/mainblogcommentstest1.php

here is one that simply refreshes the page or i can ever turn that off id you like.

 

code below

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>Untitled Document</title>

</head>

 

<body>

 

<FORM ACTION="<?php echo $PHP_SELF; ?>" METHOD=POST>

<table>

<tr><td align="right">First name:</td><td align="left"><input type="Text" name="name" width="200"></td></tr>

<tr><td align="right">Location:</td><td align="left"><input type="Text" name="location" width="200"></td></tr>

<tr><td colspan="2">Comments (Remember:Family site so keep it clean):</td></tr>

<tr><td colspan="2"><TEXTAREA NAME="comment" ROWS=5 COLS=40></TEXTAREA></td></tr>

<tr><td align="center" colspan="2"><input type="Submit" name="submit" value=" Enter information"></td></tr></table>

</form>

</body>

</html>

See the "</div>" directly under </form>? Move it down under this section of code:

 

<td bgcolor="#FFFFCC"><?php echo $myrow["comment"];?></td>

<td bgcolor="#FFFFCC">| by <?php echo $myrow["name"];?> in <?php echo $myrow["location"];?>

| on <?php echo $myrow["date"];?></td>

</tr>

<?php

}

} ?>

</table>

 

(You should now have three end-divs right here)

</div>

</div>

  </div>

I was able to click on both the links the first time, but still not the one on your main page. Then I viewed your source and moved the </div> inside your mainblogcomments.php and it allowed me to. Now add CSS to that test page. (As of now, I can click it...)

 

Any way you can add some comments to the test page as well? Only then is when I can't click submit.

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.