form

3 views
Skip to first unread message

Mohammed Jebrini

unread,
Sep 27, 2010, 3:08:44 PM9/27/10
to <?PHPalClub
create posc_form.html ::

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN" "http://
www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>You site title</title>

<style type="text/css">
body {
font-family: verdna, tahoma;
font-size: 13px;
color: gray;
padding: 0;
margin: 0;
}

table tr td {
/*border: 1px #3c3ced solid; */
}

.page {
width: 960px;
margin-left: auto;
margin-right: auto;
border: 1px #cecec3 solid;
height: auto;
}

#header {
width: 100%;
height: 80px;
border: 1px #e3e3ce solid;
}

#side {
width: 200px;
position: relative;
float: left;
min-height: 100px;
border: 1px #e3e3ce solid;
}

#content {
width: 750px;
float: right;
min-height: 300px;
border: 1px #e3e3ce solid;
}

#footer {
border: 1px #e3e3ce solid;
width: 100%;
height: 50px;
}
</style>
</head>
<body>

<table width=960 align=center>
<tr>
<td colspan=2>header</td>
</tr>
<tr>
<td width=200>side panel</td>
<td>content panel</td>

</tr>
<tr>
<td colspan=2>footer</td>
</tr>
</table>

<br />
<h2>He is our CSS code</h2>
<div class="page">
<div id="header">
<h2>Welcome to my Demo page</h2>
</div>
<div id="side">fsdfsd df sd fsdfsd dsf sdfsd sdfsd</div>
<div id="content">


<form action="posc_form.php" method="POST" enctype="multipart/form-
data" name="" id="">

<table>
<tr>
<td>User name </td>
<td><input type="text" name="username" value="" /></td>
</tr>
<tr>
<td> Password </td>
<td><input type="password" name="password" value="" /></td>
</tr>
<tr>
<td><input type="checkbox" name="remember" value="Y" /> </td>
<td>remember me</td>
</tr>
<tr>
<td><input type="file" name="file1" /> </td>
<td>remember me</td>
</tr>
<tr>
<td><input type="submit" value="login" /></td>
<td></td>
</tr>
</table>
</form>

</div>
<div style="clear: both;"></div>
<div id="footer"></div>
</div>
</body>
</html>
-----------------------------------------------------

create posc_form.php

<?php
echo mysql_escape_string($_POST['username'] );
echo $_POST['password'] ;
Reply all
Reply to author
Forward
0 new messages