OK> I'm gonna try and make myself a little more clear as this is really stumping me....
I have 2 page in PHP. The first is just a drop down menu that get's it's valuse from a table that is set up like this:
Tbl1
Sys name: Sys ID:
hello 1
goodbye 2
I select either hello or goodbye from the drop down menu and it redirects me to my second php page which is a record insert page.
When it goes to that page it sends a URL variable called system...
On the second page I have a couple of fields that will be used to insert records into another table called Tbl2 set up like this:
Tbl2
ID: date: description:
Now, as it stands I can select say hello and it redirects me to my insert page and I see my URL variable hello in a textbox....I also have some ediatble text feilds for my date and description. In here I'll put say 2004-09-09 Working on hello.....
So what I want when I click submit is for my second table to be populated as such:
ID: date: description:
1 2004-09-09 Working on hello
Right now...I get the second 2 fields....but I can't seem to get the URL variable that I sent over to translate itself as it's ID # as insert the record. At first I had both ID fields as primary keys....but the problem with that is a may have 10 entries for hello on the same day and I can't have a duplicate key (i.e. 10 1's in a row)....I'm stuck! I tried a bunch of diffrent SQL queries in my recordset....I really don't know how to do this! Any help?