Jump to content

[SOLVED] auto search


dare87

Recommended Posts

I want to make a link to https://secure.utah.gov/rer/relv, but I would like it to have specific data. The only problem is that when you do a search it doesn’t store the information in the url.

 

Is there a way to make a link auto search it?

 

I want to search Full Name or Company Name Search: with "LOYALTY MORTGAGE INC."

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/97193-solved-auto-search/
Share on other sites

You can do it with some hidden form trickery:

 

<html>
  <body>
    <form id="utah_search" action="https://secure.utah.gov/rer/relv" method="POST">
      <input type="hidden" name="page" value="page.search.search" />
      <input type="hidden" name="name" value="LOYALTY MORTGAGE INC." />
      <input type="hidden" name="searchType" value="containing" />
      <input type="hidden" name="page.search.search.searchByName" value="Submit" />
      <input type="submit" value="Link to site" />
    </form>
    <a href="#" onclick="document.getElementById('utah_search').submit();">Here is a URL submit</a>
  </body>
</html>

Link to comment
https://forums.phpfreaks.com/topic/97193-solved-auto-search/#findComment-497541
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.