# Pass data from search form to an object/database

**URL:** <https://forums.knack.com/t/pass-data-from-search-form-to-an-object-database/7660>\
**Category:** Get Answers\
**Created:** [April 20, 2016, 1:32am UTC](https://forums.knack.com/t/pass-data-from-search-form-to-an-object-database/7660 "2016-04-20T01:32:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JoshPello78101](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@JoshPello78101](https://forums.knack.com/u/JoshPello78101)\
**Post date:** [April 20, 2016, 1:32am UTC](https://forums.knack.com/t/pass-data-from-search-form-to-an-object-database/7660/1 "2016-04-20T01:32:13Z")

</div>

We just created an app and it consists of:

-Login form

-search form

Results returned in table format. There is a link for detailed results view and also a link to download a PDF.

-2 Database objects (data and users).

I'm trying to find a workaround since we don't have an option to 'log' or 'track' who is searching for what....in theory it would work like this:

1. Person logs into the app.

2. Person fills out the search fields (name and state required).

3. Person clicks Submit to search and a record is inserted into another database object that simply has:

-Username/Name of user that searched

-Search fields (i.e Name of agent searched for and state).

-Would be cool to also log these things when someone tries to download the PDF certificate in the search results (record created showing who tried to download a PDF file and which record it's associated with.)

Any thoughts on the best way to go about this? I'm not a super coder but can figure some things out (network engineer here...). I just got the "last login" code working but that's as far as I've gotten.

Any ideas on how to accomplish this would be great!
