Guys thanks for help.
I think I did not worded the question correctly.
What I want the program to do is pass a variable from a php program into a html file, then into another php program for processing into a database.
i.e.
PROGRAM 1
Insert data into table1,
Get ID 1 (incremented value) from table1,
Call and pass ID 1 into HTML file,
from HTML file, on submit, call PROGRAM 2.
PROGRAM 2
Insert data into table 2 with ID 1 as the ID in the table2.
This is done so that the records in both Table 1 and Table 2 will be in a ono to one database relationship.
I'll have a look at the fopen function but if you have anyone ideas it will come in handy.
Sorry if it does not make any sense but I cannot think of any other way to explain it.
Many Thanks
Fuzz