Solved

Form Issue

Posted on 2006-11-13
8
209 Views
Last Modified: 2012-05-05
I have this code:

<?php if ( comments_open() ) : ?>

<div class="blogbefore"></div>
<div class="blog">
<div class="contentconstraint">
<h3>Leave a comment</h3>
<p class="headertext">Comments can contain some xhtml. Names and emails are required (emails aren't displayed), url's are optional.</p>
<form id="commentform" action="<?php echo get_option('siteurl'); ?>/wp-comments-post.php" method="post">
<br />
<!--<php smilies_clickable() ?>-->
<br />
     <div>
     <textarea name="comment" id="comment" cols="120" rows="6" tabindex="1"></textarea>
     <input type="hidden" name="comment_post_ID" value="<?php echo $post->ID; ?>" />
     <input type="hidden" name="redirect_to" value="<?php echo htmlspecialchars($_SERVER['REQUEST_URI']); ?>" />
     </div>

<?php if(!$user_ID) : ?>

     <div id="inputcontainer">
     <div id="namefield">
       <input type="text" name="author" id="author" class="textarea" value="" size="15" tabindex="2" /><br />
       <label for="author">Name</label>
     </div>
     <div id="emailfield">
       <input type="text" name="email" id="email" value="" size="15" tabindex="3" /><br />
       <label for="email">E-mail</label>
     </div>
     <div id="urlfield">
       <input type="text" name="url" id="url" value="" size="15" tabindex="4" /><br />
        <label for="url"><acronym title="Uniform Resource Identifier">URI</acronym></label>
     </div>
     </div>

<?php else : ?>

        <p>
          You are logged in as <?php echo($user_identity); ?>.
        </p>

<?php endif; ?>

     <p id="submitter">
       <input name="submit" id="submit" type="submit" value="I'm done, post it." />
     </p>

     <?php do_action('comment_form', $post->ID); ?>
     
</form>
</div>
</div>
<div class="blogafter"></div>

<?php else : // Comments are closed ?>

<?php endif; ?>


This code works fine in Firefox but doesn't allow the user to click on the form and use it in IE, can anybody see what the problem is?  Here is a sample page with the actual form.
http://www.chrisvschris.com/wp/spelling-not-so-important/
0
Comment
Question by:cstormer
8 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
Comment Utility
No problem in IE7 XP
0
 

Author Comment

by:cstormer
Comment Utility
:) IE 6 sorry.
0
 
LVL 28

Accepted Solution

by:
gamebits earned 500 total points
Comment Utility
I don't know what the problem is, not yet anyway, but the thing is if you hit the tab key you will go thru all the links on the page and eventually come down to the form and then it will work, I don't know why, may be IE6 does not recognize the tabindex or it will go thru all the one without a tabindex number first.

Gamebits
0
 

Author Comment

by:cstormer
Comment Utility
Interesting..
0
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 6

Expert Comment

by:aescnt
Comment Utility
No problem in IE6 here either.
0
 

Author Comment

by:cstormer
Comment Utility
Are you sure... u can click on the top text comment form?
0
 
LVL 16

Expert Comment

by:LeeKowalkowski
Comment Utility
It works on IE6/XP - What OS are you having problems in?  Form controls have OS-specific traits.
0
 
LVL 4

Expert Comment

by:madutis
Comment Utility
Works here on IE6/Win2003Server
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
XSLT 5 36
What is the normal amount of queries 5 68
Forbidden errors 5 107
PHP PDO get the error if exists 3 60
There are two main kinds of selectors in CSS: One is base selector like h1, h2, body, table or any existing HTML tags.  For instance, the following rule sets all paragraphs (<p> elements) to red: (CODE) CSS also allows us to define our own custom …
Shoutout to Emily Plummer (http://www.experts-exchange.com/members/eplummer26.html) for giving me this article! She did most of it, I just finished it up and posted it for her :)    Introduction In a previous article (http://www.experts-exchang…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now