PHP/Mysql foreign key fill

Ask about a PHP problem here.
Post Reply
patraghost
Posts: 5
Joined: Mon May 30, 2011 3:23 pm

PHP/Mysql foreign key fill

Post by patraghost »

hello again :P.i got a question! firstly i fill the form customer data (a field is cust_id).Then i will fill the from purchase.in purchase form a field is cust_id which is the foreign key .My question is - how do I get automatically complete of the Foreign Key field of the form purchase since i alrady filled it in customer form ?
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: PHP/Mysql foreign key fill

Post by jacek »

Do you mean a field as in
<input type="text" name="cust_id" />
Or a column in the database ?
Image
patraghost
Posts: 5
Joined: Mon May 30, 2011 3:23 pm

Re: PHP/Mysql foreign key fill

Post by patraghost »

both... anyway i solve it using session variables :) tnx for reply
Post Reply