crabjoe
02-14-2008, 08:30 AM
Here's what I'm trying to do.
Lets say I have a form with the following fields:
Name
Address
City
State
Zip
Telephone Number
Product Sold
What I want on this form are 2 buttons. An "Update" button next to "Name" and a "Submit" button at the bottom.
Now here's what I want it to do.
What I want is to be able to enter then Name, hit "Update" and if the name is found in the database, I want the rest of the fields auto filled, except for the Product sold. If no name is found, all the fields will remain input boxes.
I know how to do this if I use 2 forms, but I'd like to do it all on the same page. I know it's possible because I've seen it done.
Can anyone point me to an example or is it something that so easy, that I just thinking it it's harder then it really is.
BTW, don't worry about the query to pull the data, because I've got that all ready. I just need to know how to do a form within a form. Basically one submit takes it back to the same page and the 2nd submit taking the data to a different page.
Thanks!!
Lets say I have a form with the following fields:
Name
Address
City
State
Zip
Telephone Number
Product Sold
What I want on this form are 2 buttons. An "Update" button next to "Name" and a "Submit" button at the bottom.
Now here's what I want it to do.
What I want is to be able to enter then Name, hit "Update" and if the name is found in the database, I want the rest of the fields auto filled, except for the Product sold. If no name is found, all the fields will remain input boxes.
I know how to do this if I use 2 forms, but I'd like to do it all on the same page. I know it's possible because I've seen it done.
Can anyone point me to an example or is it something that so easy, that I just thinking it it's harder then it really is.
BTW, don't worry about the query to pull the data, because I've got that all ready. I just need to know how to do a form within a form. Basically one submit takes it back to the same page and the 2nd submit taking the data to a different page.
Thanks!!