Page 1 of 1

PHP/Mysql foreign key fill

Posted: Thu Jun 02, 2011 10:06 am
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 ?

Re: PHP/Mysql foreign key fill

Posted: Thu Jun 02, 2011 3:14 pm
by jacek
Do you mean a field as in

[syntax=xhtml]<input type="text" name="cust_id" />[/syntax]
Or a column in the database ?

Re: PHP/Mysql foreign key fill

Posted: Sat Jun 04, 2011 10:28 am
by patraghost
both... anyway i solve it using session variables :) tnx for reply