yes you can have a form within a drop down
checkout my code for a custom wp-login.php embedded with a drop down
<li class="dropdown" href="#dropdown1">
<a href="#menu1" class="dropdown-toggle" data-toggle="dropdown"
id="dropdown1">
<i class="icon-user icon-white"></i> Sign In <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<div style="padding: 10px;">
<form method="get" id="signin" action="wp-login.php">
<label for="login_username"><b>Username</b></label><input type="text"
name="log" id="login_username" title="username" style="font-size: 12px;
letter-spacing:2px;" placeholder="Enter Username Here" value="" />
<label for="login_password"><b>Password</b></label><input type="password"
name="pwd" id="login_password" title="password" style="font-size: 12px;
letter-spacing:2px;" placeholder="Enter Password Here" value="" /><br>
<span style="float: left;"><input type="submit" class = "btn btn-success"
style="letter-spacing: 3px;" value="LOGIN"></span>
<br><br>
<span style="float: left;">
<a href = "wp-login.php" id = "signup">Sign up</a> |
<a href="wp-login.php?action=lostpassword" title="password loss and found"
id="resend_loss_password" style="">Forgot your password?</a>
</span>
</form>
<div style="padding: 8px 0px 40px 0px;" width:100%; > <a id="fbk"
href="#"><img src="<?php
bloginfo('template_directory');?>/img/fb-login-button.png" align="left"
style=""></a></div>
</div>
</ul>
</li>
On Thursday, February 28, 2013 6:35:14 PM UTC+1, Surya wrote:
>
> What I have is a simple drop-down consisting for 3 links
>
> <li class="dropdown">
> <a class="dropdown-toggle" data-toggle="dropdown" href="#">
> Contribute
> <b class="caret"></b>
> </a>
> <ul class="dropdown-menu">
> <li><a href="#">Submit code snippet</a></li>
> <li><a href="#">Submit library</a></li>
> <li><a href="#">Submit link</a></li>
> </ul>
> </li>
>
>
> Now, each of those links should come under *post* request inside a <form>
> tag! However when I do so
>
> <form type="post">
> <li><a href="#">Submit code snippet</a></li>
> <li><a href="#">Submit library</a></li>
> <li><a href="#">Submit link</a></li>
> </form>
>
> The design is going bad! May be form CSS is overlapping with dropdown..
>
> SO how to fix it? any ideas
>
--
You received this message because you are subscribed to the Google Groups
"twitter-bootstrap" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.