Forum Moderators: open
I'm using a script that have the following link:
<li><a href="javascript:void(null);" title="<?php echo getLangTerm('login',true);?>" id="login_link"<?php if (isset($afbAccount)) {?> style="display:none;"<?php }?>><span><?php echo aaa;?></span></a></li>
When you clink on it, it shows a login form. What I'm trying to do, is to place that form on the body of the page, visible without having to click on the link. I have successfuly achieve this, by placing the following on the body:
<p><input type="text" name="username" id="login_username" class="txt" > </p>
<p><input type="password" name="password" id="login_password" class="txt" > </p>
<p><input type="button" name="login" value="Login" id="login_submit" class="button" ></p>
The problem is that in order to have the new login button to "log", I have to click first the original link.
Any idea?
Sorry if I'm missing information; I have tried for three days and search a lot, but no luck.
Thanks in advance!
If i understand you correctly you are just missing a submit button. Now, assuming that form's action value is properly set, all you would have to do is add the following in the form itself:
<input type="submit" value="Login!" />