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? Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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> Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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? Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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> Quote Link to comment 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 Quote Link to comment 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> Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Lytheum Posted March 29, 2007 Share Posted March 29, 2007 Works 100% now. Quote Link to comment 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 Quote Link to comment 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! Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.