- <html>
-
<head>
-
<script type="text/javascript" src="datetimepicker.js">
-
function validation() {
-
document.form2.flag.value="insert";
-
document.form2.submit();
-
}
-
</script>
-
</head>
-
<body bgcolor=#c3e393>
-
<?php
-
include("dbconnection.php");
-
$txtname=$_POST['txtname'];
-
$txtdivision=$_POST['txtdivision'];
-
$txtdept=$_POST['txtdept'];
-
$txthod=$_POST['txthod'];
-
$txtsdate=$_POST['txtsdate'];
-
$txtfdate=$_POST['txtfdate'];
-
$txtbudget=$_POST['txtbudget'];
-
$txtpriority=$_POST['txtpriority'];
-
$txtpcode=$_POST['txtpcode'];
-
$txtsname=$_POST['txtsname'];
-
$txtptype=$_POST['txtptype'];
-
$txturl=$_POST['txturl'];
-
$txtstatus=$_POST['txtstatus'];
-
$flag=$_POST['flag'];
-
$query=pg_query("INSERT INTO project(projname,division,department,startdate,finishdate,budget,priority,projectcode,shortname,projecttype,url,status,hod) VALUES ('$txtname','$txtdivision','$txtdept','$txtsdate','$txtfdate','$txtbudget','$txtpriority','$txtpcode','$txtsname','$txtptype','$txturl','$txtstatus','$txthod')");
-
?>
-
<form name="form2" method="POST" action="project.php" >
-
<input type="hidden" name="flag" value="<?php echo $flag; ?>">
-
<table align=center>
-
<h2 align=center>Project Details</h2>
-
<tr>
-
<td>
-
<strong>Project code :<strong>
-
</td>
-
<td>
-
<input id="pcode" type=text name="txtpcode" value="<?php echo $txtpcode; ?>"/>
-
</td>
-
</tr>
-
<tr>
-
<td>
-
<font size=3>
-
<strong>Name of the Project :</strong>
-
</td>
-
<td>
-
<input id="name" type=text name="txtname" value="<?php echo $txtname; ?>"/>
-
</td>
-
</tr>
-
<tr>
-
<td>
-
<strong>Short Name :<strong>
-
</td>
-
<td>
-
<input id="sname" type=text name="txtsname" value="<?php echo $txtsname; ?>"/>
-
</td>
-
</tr>
-
<tr>
-
<td>
-
<font size=3>
-
<strong>Division :</strong>
-
</td>
-
<td>
-
<input id="division" type=text name="txtdivision" value="<?php echo $txtdivision; ?>"/>
-
</td>
-
</tr>
-
<tr>
-
<td>
-
<font size=3>
-
<strong>Department :</strong>
-
</td>
-
<td>
-
<input id="dept" type=text name="txtdept" value="<?php echo $txtdept; ?>"/>
-
</td>
-
</tr>
-
<tr>
-
<td>
-
<font size=3>
-
<strong>Department HOD :</strong>
-
</td>
-
<td>
-
<input id="hod" type=text name="txthod" value="<?php echo $txthod; ?>"/>
-
</td>
-
</tr>
-
<tr>
-
<td>
-
<font size=3>
-
<strong>Start Date :</strong>
-
</td>
-
<td>
-
<input id="demo1" type="text" name="txtsdate" value="<?php echo $txtsdate; ?>"><a href="javascript:NewCal('demo1','ddmmyyyy')"><img src="cal.gif" width="16" height="16" border="0" alt="Pick a date"></a>
-
</td>
-
</tr>
-
<tr>
-
<td>
-
<strong>Target Finish Date :<strong>
-
</td>
-
<td>
-
<input id="demo2" type="text" name="txtfdate" value="<?php echo $txtfdate; ?>"><a href="javascript:NewCal('demo2','ddmmyyyy')"><img src="cal.gif" width="16" height="16" border="0" alt="Pick a date"></a>
-
</td>
-
</tr>
-
-
-
<tr>
-
<td>
-
<strong>Budget :<strong>
-
</td>
-
<td>
-
<input type="checkbox" name="txtbudget" value="y" /> yes
-
<input type="checkbox" name="txtbudget" value="n" /> no
-
</td>
-
</tr>
-
-
-
<tr>
-
<td>
-
<strong>Priority :<strong>
-
</td>
-
<td>
-
<select name="txtpriority">
-
<option value="1">Low</option>
-
<option value="2">Medium</option>
-
<option value="3">High</option>
-
</select></div>
-
</td>
-
</tr>
-
<tr>
-
<td>
-
<strong>Project Type :<strong>
-
</td>
-
<td>
-
<input id="ptype" type=text name="txtptype" value="<?php echo $txtptype; ?>"/>
-
</td>
-
</tr>
-
-
<tr>
-
<td>
-
<strong>URL of the project :<strong>
-
</td>
-
<td>
-
<input id="url" type=text name="txturl" value="<?php echo $txturl; ?>"/>
-
</td>
-
</tr>
-
-
<tr>
-
<td>
-
<strong>Status :<strong>
-
</td>
-
<td>
-
<select name="txtstatus">
-
<option value="1">initialization</option>
-
<option value="2">Study</option>
-
<option value="3">SRS</option>
-
<option value="4">Design</option>
-
<option value="5">Coding</option>
-
<option value="6">Testing</option>
-
<option value="7">Implementation</option>
-
</select>
-
</td>
-
</tr>
-
</table>
-
<center>
-
<table>
-
<tr>
-
<td><input type=button value="Submit" name="b1" onClick="return validation()";/></td>
-
<td><input type="Reset" name="b2"></td>
-
</tr>
-
</table>
-
</center>
-
</form>
-
</body>
-
</html>
1 1248
code dump, you expect people to read this ****
Sign in to post your reply or Sign up for a free account.
Similar topics
by: phatnugs420 |
last post by:
Hi thanks for the help in advanced!.. To further explain what i want it to
do is:
go from:
Body Conscious
1815 Division St # 101
Nashville TN, 37203
615-321-8555
<blank field>
|
by: Dragan Matic |
last post by:
If I have a table t with column c which is defined as char(5) and fill
it with following values:
insert into t (c) values (' 1')
insert into t (c) values (' 2')
insert into t (c) values...
|
by: Dragan Matic |
last post by:
If I have a table t with column c which is defined as char(5) and fill
it with following values:
insert into t (c) values (' 1')
insert into t (c) values (' 2')
insert into t (c) values...
|
by: Grayscale |
last post by:
Hello,
When I execute the code below, I get:
"Microsoft JET Database Engine (0x80040E10)
No value given for one or more required parameters." error message in
the first line.
Rs.Open...
|
by: Dave |
last post by:
I am getting the error above intermittantly with an ASP 3.0 page using an MS
Access 2003 database.
I have searched Google extensively and found the following possible causes
for this error:
A...
|
by: jkwang |
last post by:
I am trying to create a form where the value of 1 field limits the value options of a 2nd field. For example: Say I have a database of inventory in 5 warehouses. I want to create a form that will...
|
by: tomzji |
last post by:
I am using Sql server 2005.
I have one table named 'tblJob'. This table have two fields say 'Staus' and 'ExpiryDate'.
when 'Expirydate' come to less than current date, i want to upadte 'Status'...
|
by: canajien |
last post by:
I am trying to get a script to show a particular image when a field
value = 1, otherwise it will show something else, and this is what I
came up with:
$i=0;
while ($i < $num) {
...
|
by: kingparthi |
last post by:
This is a program to add, display & delete an item from the double linked list ...
Here the add & display works correctly... where my delete is having some
problem, when ever I delete an item, it...
|
by: Indrajit Chakraborty |
last post by:
I am developing a simple web site in ASP. I have a web page which has a form, and I want to set the values of two text box to 2 fields selected by a query. One of the fields is a name field which has...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |