Forums / Cotonti / General / The button in shape in the form of the reference

Killer
#1 2009-10-16 22:52
Hello dear programmers. A question to you. Business means such, there is an input form
<form name="login" action="users.php?m=auth&amp;a=check&amp;redirect=" method="post" onSubmit="javascript:showBusyLayer()" >
			<label for="mod_login_username">Username</label>
			<input type="text" class="inputbox" name="rusername" size="13" maxlength="32" onFocus="if (this.value == 'User Name') this.value = '';" />

			<label for="mod_login_password">Password</label>
			<input type="password" class="inputbox" name="rpassword" size="13" title="Введите ваш пароль" />
			<input name="login" type="hidden" id="login" value="{PHP.skinlang.usersauth.Login}" />

	<input type="submit" value="{PHP.L.Login}" />
</form>
As we see, now data go the button
<input type="submit" value="{PHP.L.Login}" />
And it is necessary to alter, that these data went the reference, instead of the button.
Such variant has tried
<form name="login" action="users.php?m=auth&amp;a=check&amp;redirect=" method="post" onSubmit="javascript:showBusyLayer()" >
               <label for="mod_login_username">Username</label>
               <input type="text" class="inputbox" name="rusername" size="13" maxlength="32" onFocus="if (this.value == 'User Name') this.value = '';" />

               <label for="mod_login_password">Password</label>
               <input type="password" class="inputbox" name="rpassword" size="13" title="Введите ваш пароль" />
               <input name="login" type="hidden" id="login" value="{PHP.skinlang.usersauth.Login}" />

     <input type="submit" value="{PHP.L.Login}" />

<a href="#" onclick="document.login.submit();return false;">Login</a>
</form>
Has not helped. Though at Dr2005alex has worked this variant.

There are other variants? Thanks.

Добавлено 2 Минуты спустя:

I am sorry for my English.

Добавлено 38 Минут спустя:

It appears the matter is that the cursor does not wish to process Russian symbols at registration and an input. The form the worker of an input! Thanks Dr2005Alex

And why developers of it have not provided?
Лишь утратив всё до конца, мы обретаем свободу...

Dit bericht is bewerkt door Killer (2009-10-16 23:33, 14 jaren ago)