Solved

Form Issue

Posted on 2006-11-13
8
210 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
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
 

Author Comment

by:cstormer
ID: 17934715
Interesting..
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
My first SOAP client. I have constructed the XML message... how to send? 8 68
Contact Forms for Website 6 78
Adjust the position 3 49
.php tree directory? 5 56
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
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…

910 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

21 Experts available now in Live!

Get 1:1 Help Now