Solved

Form Issue

Posted on 2006-11-13
8
214 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
8 Comments
 
LVL 75

Expert Comment

by:Michel Plungjan
ID: 17933189
No problem in IE7 XP
0
 

Author Comment

by:cstormer
ID: 17933280
:) IE 6 sorry.
0
 
LVL 28

Accepted Solution

by:
gamebits earned 500 total points
ID: 17934561
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:cstormer
ID: 17934715
Interesting..
0
 
LVL 6

Expert Comment

by:aescnt
ID: 17936034
No problem in IE6 here either.
0
 

Author Comment

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

Expert Comment

by:LeeKowalkowski
ID: 18121576
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
ID: 18129280
Works here on IE6/Win2003Server
0

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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 …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

734 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