I send a single Part Number from an HTML form, and it passes to this PHP, which has two function:
1. It displays all the current data for that part number
2. It create another HTML form, which allows you do edit the data for that part no. via another PHP script. The only thing I don't like is that you have to enter the Part Number into the new form.
QUESTION: Is there a way to pass the HTML form input from the first form to the SECOND HTML FORM within this PHP script, so I don't have to re-enter the Part Number????? (Be nice... I'm new at this ;) )
<<<<<<<<<<<My PHP Script>>>>>>>>>>
<html>
<body background="tekbg.gif" bgcolor=#d9d9d9>
<h2>Teknetix Component Library Editor</H2>
<?PHP
<<<<SNIP>>>>
mysql_connect($host,$user,$password);
mysql_select_db($database);
$EDITPARTNO=$_POST['EDITPARTNO'];
$result = mysql_query
("
SELECT * FROM lbryperm
WHERE TEK_PART_NUMBER
LIKE '$EDITPARTNO'
");
IF ($row=mysql_fetch_array($result))
{do
{
PRINT ("<h4>Teknetix Part Number: ");
print $row["TEK_PART_NUMBER"];
print (" ");
PRINT ("Revision: ");
print $row["REVISION"];
print (" <br> ");
PRINT ("Part Catagory: ");
print $row["PART_CATAGORY"];
print (" ");
<<<<<SNIP>>>>>
PRINT ("Inspection Notes: ");
print $row["INSPECTION"];
print (" <br><br><IMG SRC=LINE.JPG></h4>");
}
while($row = mysql_fetch_array($result));
}
else {
print "SORRY, TEKNETIX PART NUMBER WAS NOT FOUND";
}
?>
<form name="TEKPARTEDITOR" method="post" action="TEKpartEDITOR.php">
<h3> Enter the Part Number and Values you wish to change:
<BR>
<<<This is the same Part Number that was passed from the last form>>>
Tek_Part_Number:
<input type="TEXT" SIZE="8" name="TEK_PART_NUMBER" >
<<<<<<<>>>>>>>>
Revision Number:
<input type="text" SIZE="4" name="REVISION1">
Part Catagory:
<input type="text" SIZE="10" name="PART_CATAGORY1">
Configuration:
<input type="text" SIZE="10" name="CONFIGURATION1"> <br>
Value:
<<<<<SNIP>>>>>
Inspection Notes:
<input type="text" SIZE="100" name="INSPECTION1">
<BR>
<input type="submit" name="Submit" value="Submit">
</h3>
</form>
</body>
</html>
