Jump to content

alignment questions - basic


newbienewbie

Recommended Posts

<html>
<body>
<form action="" method="post">
Username:
<input align="CENTER" name="username" type="text" size="10" maxlength="30"/>
Password:
<input name="password" type="password" size="10" maxlength="30" />
<input type="submit" value="Login" />
</form>

<?php 
echo $_REQUEST['username'];
echo $_REQUEST['password'];
?>
</body>
</html>

 

i want to username and password box in center of the page i used align, but it doesn't works? any help

Link to comment
https://forums.phpfreaks.com/topic/40653-alignment-questions-basic/
Share on other sites

<html>
<body>
<form action="" method="post">
Username:
<input align="CENTER" name="username" type="text" size="10" maxlength="30"/>
Password:
<input name="password" type="password" size="10" maxlength="30" />
<input type="submit" value="Login" />
</form>

<center>

<?php 
echo $_REQUEST['username'];
echo $_REQUEST['password'];
?>

</center>

</body>
</html>

thanks,

 

but i want this into center middle, currently it is showing in center top. i used div

 

<div align="right">
<center>
<form action="" method="post">
Username:
<input name="username" type="text" size="10" maxlength="30"/>
Password:
<input name="password" type="password" size="10" maxlength="30" />
<input type="submit" value="Login" />
</form>
</center>
</div>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.