koolkat67 Posted March 29, 2007 Share Posted March 29, 2007 I have a page where people enter comments and found the users with Internet Explorer 7.0 cannot enter comments. It's a page with a form which reloads showing comments below. Anyone have any ideas? Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/ Share on other sites More sharing options...
kenrbnsn Posted March 29, 2007 Share Posted March 29, 2007 Are you using an image as the submit button? Ken Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217186 Share on other sites More sharing options...
Lytheum Posted March 29, 2007 Share Posted March 29, 2007 Does it use javascript or some kind of ActiveX control? Does it use cookies? Would help a lot if you showed us the code. Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217187 Share on other sites More sharing options...
koolkat67 Posted March 29, 2007 Author Share Posted March 29, 2007 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> Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217194 Share on other sites More sharing options...
Lytheum Posted March 29, 2007 Share Posted March 29, 2007 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. Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217205 Share on other sites More sharing options...
koolkat67 Posted March 29, 2007 Author Share Posted March 29, 2007 $submit = $_POST['submit']; this line I had earlier but didn't work. the space thing...hmmm...now i need a machine with IE7 to test it...lol Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217209 Share on other sites More sharing options...
Lytheum Posted March 29, 2007 Share Posted March 29, 2007 Is your site up and running online? PM me a link if you'd like me to test it for you. Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217211 Share on other sites More sharing options...
koolkat67 Posted March 29, 2007 Author Share Posted March 29, 2007 http://www.alaskabhangu.com/ and then click on Have a Comment? thanks alot Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217215 Share on other sites More sharing options...
Lytheum Posted March 29, 2007 Share Posted March 29, 2007 <tr><td align="center" colspan="2"><input type="Submit" name="submit" value="Enter information"></td></tr></table> Okay, did you fix that line yet? Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217218 Share on other sites More sharing options...
koolkat67 Posted March 29, 2007 Author Share Posted March 29, 2007 i sure did but maybe try again to be sure. Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217222 Share on other sites More sharing options...
Lytheum Posted March 29, 2007 Share Posted March 29, 2007 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 Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217223 Share on other sites More sharing options...
koolkat67 Posted March 29, 2007 Author Share Posted March 29, 2007 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> Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217224 Share on other sites More sharing options...
koolkat67 Posted March 29, 2007 Author Share Posted March 29, 2007 ooops i just noticed you wanted CSS so that would be this page http://www.alaskabhangu.com/mainblogcommentstest.php Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217225 Share on other sites More sharing options...
Lytheum Posted March 29, 2007 Share Posted March 29, 2007 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> Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217230 Share on other sites More sharing options...
koolkat67 Posted March 29, 2007 Author Share Posted March 29, 2007 yeah but i have div for my form and another for my comments display. if i place the </div> below it'll make my comments display be within my form space. Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217232 Share on other sites More sharing options...
koolkat67 Posted March 29, 2007 Author Share Posted March 29, 2007 http://www.alaskabhangu.com/mainblogcommentstest1.php also were you able to click on this link which has no CSS? this should refresh the page Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217233 Share on other sites More sharing options...
Lytheum Posted March 29, 2007 Share Posted March 29, 2007 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. Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217237 Share on other sites More sharing options...
koolkat67 Posted March 29, 2007 Author Share Posted March 29, 2007 http://www.alaskabhangu.com/mainblogcomments.php ok try my actual page again. i moved the </div> to the end Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217239 Share on other sites More sharing options...
Lytheum Posted March 29, 2007 Share Posted March 29, 2007 Works 100% now. Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217240 Share on other sites More sharing options...
kenrbnsn Posted March 29, 2007 Share Posted March 29, 2007 Run your original script through a HTML Validator. I did and got over 20 errors. If you fix those errors you may find that you're pages will be fine. Ken Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217242 Share on other sites More sharing options...
koolkat67 Posted March 29, 2007 Author Share Posted March 29, 2007 lytheum, thanx alot! can u see if you can enter words? Ken, thanks for that page! Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217243 Share on other sites More sharing options...
Lytheum Posted March 29, 2007 Share Posted March 29, 2007 I'll go ahead and try to post via IE. You'll know if it worked ..No problem. You should probably get rid of my comment as I'm not from Alaska Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217245 Share on other sites More sharing options...
koolkat67 Posted March 29, 2007 Author Share Posted March 29, 2007 hey, could you give it one more shot for me? Im just trying one thing Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217250 Share on other sites More sharing options...
Lytheum Posted March 29, 2007 Share Posted March 29, 2007 Nope, can't click it anymore. I'm no good at </div> so I can't explain why. Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217251 Share on other sites More sharing options...
koolkat67 Posted March 29, 2007 Author Share Posted March 29, 2007 well hey, at least you figured it out. thanx for your help! Link to comment https://forums.phpfreaks.com/topic/44730-ie7-users-cant-use-my-page/#findComment-217252 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.