Fetching Foreignkey Values

can i know how to insert values in foreign key table using the form.