• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 225
  • Last Modified:

Form Issue

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 />
     <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']); ?>" />

<?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 id="emailfield">
       <input type="text" name="email" id="email" value="" size="15" tabindex="3" /><br />
       <label for="email">E-mail</label>
     <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>

<?php else : ?>

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

<?php endif; ?>

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

     <?php do_action('comment_form', $post->ID); ?>
<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.
1 Solution
Michel PlungjanIT ExpertCommented:
No problem in IE7 XP
cstormerAuthor Commented:
:) IE 6 sorry.
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.

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

cstormerAuthor Commented:
No problem in IE6 here either.
cstormerAuthor Commented:
Are you sure... u can click on the top text comment form?
It works on IE6/XP - What OS are you having problems in?  Form controls have OS-specific traits.
Works here on IE6/Win2003Server
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now