Помощ за код

Статус
Not open for further replies.

rumchi

Registered
Имам следната логин форма:

Код:
<form action='?act=login' method='post'>
Username: <input type='text' name='username' size='30'>
Password: <input type='password' name='password' size='30'>
<input type='submit' value='Login'>
</form>

Как да сложа:

Код:
<form action='register.php' method='get'>
<input type='submit' value='Register'>
</form>

За да стане нещо подобно:

Код:
<form action='?act=login' method='post'>
Username: <input type='text' name='username' size='30'>
Password: <input type='password' name='password' size='30'>
<input type='submit' value='Login'>
</form>
</div>


<form action='register.php' method='get'>
<input type='submit' value='Register'>
</form>

Но искам този бутон
да е до бутона
а не отдоло?
 
Код:
<table>

<td><input type='submit' value='Login'> </td>
<td><form action='register.php' method='get'>
<input type='submit' value='Register'> </td>

</table>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<div id="forms">
<form action='' method='post' style="display:inline">
Username: <input type='text' name='username' size='30'>
Password: <input type='password' name='password' size='30'>
<input type='submit' value='Login'>
</form>
<form action='register.php' method='get' style="display:inline">
<input type='submit' value='Register'>
</form>
</div>
</body>
</html>
само добави това:
display:inline;
към двете форми
 
emagi каза:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<div id="forms">
<form action='' method='post' style="display:inline">
Username: <input type='text' name='username' size='30'>
Password: <input type='password' name='password' size='30'>
<input type='submit' value='Login'>
</form>
<form action='register.php' method='get' style="display:inline">
<input type='submit' value='Register'>
</form>
</div>
</body>
</html>
само добави това:
display:inline;
към двете форми

Хех мерси :P +1
Може да локвате темата.
 
Статус
Not open for further replies.

Back
Горе