Click here to Skip to main content
15,886,025 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
my project is employee registration form,
the user interface is HTML,
programming language is PYTHON
and the database is PostgreSQL

This is my code...

<html>
<head>
<style type="text/css">
body {color:green;font-family:Arial, Sans-Serif;}
#container {width:500px;
background:#F0F0F0;
margin:25px;
padding:15px;
border:5px solid gray;
}
form label{display:inline-block; width:160px;}
form .line{clear:both;}
form .line_submit{text-align:right;}
#submit{color:red;}
#reset{color:orange;}
#edit{color:348838d;}
#age{width:40px;}
#address{height:100px;}
#pincode{width:90px;}
#mobile{width:120px;}
#doj{width:80px;}
#dob{width:80px;}
#tit{
text-align:center;
color:330000;
text-shadow: 2px 2px #ffff00;
font-size:30px;
}

</style>
</head>
<body>

<form>
Employee Registration


<label for="username">User Name:</label><input type="text" id="username">


<label for="gender">Gender:</label><input type="radio" id="male">Male <input type="radio" id="female">Female


<label for="dob">DOB:</label><input type="text" id="dob">


<label for="age">Age:</label><input type="text" id="age">


<label for="address">Address:</label><input type="text" id="address">


<label for="pincode">Pin Code:</label><input type="text" id="pincode">


<label for="mobile">Mobile:</label><input type="text" id="mobile">


<label for="doj">Dote of Joining:</label><input type="text" id="doj">


<input type="submit" value="Add" id="submit" >
<input type="submit" value="Reset" id="reset" >
<input type="submit" value="Edit" id="edit" >

</form>

</body>
</html>


its working properly, but i want to know where i can put python code for user input from text field? please give a piece of codings









Posted
Comments
Sergey Alexandrovich Kryukov 5-Mar-14 12:24pm    
It depends on the Python-based framework available at your host. What is that?
—SA
[no name] 6-Mar-14 0:43am    
really i cant understand yours, please give a briefly explanation
Sergey Alexandrovich Kryukov 6-Mar-14 1:04am    
I don't know how you use Python under the Web browser. There are several different frameworks hosting Python code, supporting different technologies and programming models. If you are writing server-side code of a Web application in Python, you should know yours, at least the name... There is no "just Python".
—SA

1 solution

If you don't know which Python-based Web framework you are using, and what is supported by your hosting, it's not clear why are you asking about Python at all. Yes, I think Python-based Web development is very valuable thing, but you need to have some motivation and at least have any idea of what is available at your hosting. (Do you have some hosting provider? did you talk to them or read their documentation?)

Look how many different Web frameworks based on Python are available, and, mind you, this least is not quite complete:
http://en.wikipedia.org/wiki/Comparison_of_web_application_frameworks#Python[^].

Perhaps the most known and used platform these days is Django: http://en.wikipedia.org/wiki/Django_(web_framework)[^].

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900