Ask Dave Taylor
  • Facebook
  • Instagram
  • Linkedin
  • Pinterest
  • Twitter
  • YouTube
  • Home
  • YouTube Videos
  • Top Categories
  • Subscribe via Email
  • Ask A Question
  • Meet Dave
  • Home
  • HTML & Web Page Design
  • Add Veterans Affairs search engine to my Web site?

Add Veterans Affairs search engine to my Web site?

November 11, 2016 / Dave Taylor / HTML & Web Page Design / No Comments

As an Army Vet, I know how hard it can be for people to find the right online resources when they’re in need. I’ve been building a Web site to help, and would like to embed the DVA search box on my page. Is that possible?

First off, thanks for your service. Much appreciated, both you and every other vet who has served our country in whatever capacity. And you’re right, the US Department of Veterans Affairs has been working on creating better online resources, but it is a bit of a maze trying to figure out where to turn for specific help.

Identifying specific areas of assistance and offering tutorials on how to figure out how to, for example, get college benefits, medical help, or even burial benefits can be daunting and if you’re not already familiar with computers and the Web, it can be overwhelming.

So props to you for building a new site to offer another path for vets to find the benefits, help and information they seek. The more, the merrier.

I’m happy to show you how to embed the VA.GOV search engine on your own page too, but let me step through the process rather than just list some HTML code.

To start, here’s the VA.GOV home page, with the search box shown:

department of veterans affairs web site va.gov

You can see that the areas they have found are most important to visitors are health, benefits, burials & memorials, suicide prevention, national cemetery administration, the veterans choice program and the personalized version of the VA site called “MyVA”. That should help you figure out what areas you should include too.

To reverse engineer the search, let’s actually do a search for “college tuition“. The results of the search are:

results of college tuition benefits search, va.gov veterans affairs

All good, but what’s important is to look at the URL in the address bar of the browser to see how the VA.GOV site sends the search query:

department of veterans affairs, search engine URL

There’s a lot going on, but with a bit of experimentation, it turns out that just about all of it is irrelevant: the far simpler search URL below produces identical results on the site:

simplified department of veterans affairs search url

Now we’re getting somewhere, because to build a search box all we need to know is the variable used for the search term (in this case you can see it’s “QT“) and the URL of the page that receives that URL and actually processes the search (here it’s “http://www.index.va.gov/search/va/va_search.jsp”).

Armed with that information, here’s the most rudimentary search box, in HTML:

<form method=”GET” action=”http://www.index.va.gov/search/va/va_search.jsp”>
<input type=”text” name=”QT” />
<input type=”submit” />
</form>

To turn that into an actual search box on a Web page, enter it as HTML source:

Not too complicated, is it? Now let’s add some CSS pizazz so it’s a bit more visually attractive, starting with a box around the entire search, a very light blue background and, of course, a prompt explaining what it is. Oh and let’s have it open in a separate window too by adding target= to the first line:

<form method=”get” action=”http://www.index.va.gov/search/va/va_search.jsp” target=”_blank” style=”border:1px solid black;background-color:#eef;padding:10px;width:500px;”>
Search the Department of Veterans Affairs:
<input type=”text” name=”QT” />
<input type=”submit” value=”Search” />
</form>

And rendered it looks like:

Search the Department of Veterans Affairs:

Definite improvement! Try it, by the way, see what happens.

There’s lots more you can do to get this form to appear exactly as you desire, but I hope this will get you on the right track. Good luck, and I hope your site proves a great resource for fellow vets.

Also, note that since you now understand how the search URLs are formed, you can also add links to your own page that are predefined searches too. Write about veterans benefits with college costs? A predefined search for college benefits on the VA site can be as simple as a link to http://www.index.va.gov/search/va/va_search.jsp?QT=college+benefits with the appropriate word or two (or graphic) shown.

Let’s Stay In Touch!

Never miss a single article, review or tutorial here on AskDaveTaylor, sign up for my fun weekly newsletter!
Name: 
Your email address:*
Please enter all required fields
Correct invalid entries
No spam, ever. Promise. Powered by FeedBlitz
Please choose a color:
Starbucks coffee cup I do have a lot to say, and questions of my own for that matter, but first I'd like to say thank you, Dave, for all your helpful information by buying you a cup of coffee!
embed search box, reverse engineering, search box, va.gov, veterans affairs, web design, web page search

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Search

Recent Posts

  • How Do I Download Movies & Shows from HBOMax.com?
  • Can I Calculate Mortgage Payments with Online Tools?
  • How Do I Find Available Disk Space on my Mac System?
  • How to Identify Plants and Flowers with Google Lens on Android?
  • Windows Security Wants Me to Enable “App & Browser Control”?

On Our YouTube Channel

Acer Chromebook 317 -- Budget 17.3" Laptop -- REVIEW

1More ComfoBuds Mini ANC Earbuds -- REVIEW

Categories

  • AdSense, AdWords, and PPC Help (106)
  • Amazon, eBay, and Online Shopping Help, (161)
  • Android Help (197)
  • Apple iPad Help (144)
  • Apple Watch Help (52)
  • Articles, Tutorials, and Reviews (344)
  • Auto Tech Help (11)
  • Business Advice (199)
  • Chrome OS Help (23)
  • Computer & Internet Basics (763)
  • d) None of the Above (165)
  • Facebook Help (383)
  • Google, Chrome & Gmail Help (177)
  • HTML & Web Page Design (245)
  • Instagram Help (47)
  • iPhone & iOS Help (605)
  • iPod & MP3 Player Help (173)
  • Kindle & Nook Help (92)
  • LinkedIn Help (85)
  • Linux Help (164)
  • Linux Shell Script Programming (86)
  • Mac & MacOS Help (891)
  • Most Popular (16)
  • Outlook & Office 365 Help (24)
  • PayPal Help (69)
  • Pinterest Help (53)
  • Reddit Help (17)
  • SEO & Marketing (81)
  • Spam, Scams & Security (92)
  • Trade Show News & Updates (23)
  • Twitter Help (217)
  • Video Game Tips (66)
  • Web Site Traffic Tips (62)
  • Windows PC Help (915)
  • Wordpress Help (204)
  • Writing and Publishing (72)
  • YouTube Help (46)
  • YouTube Video Reviews (159)
  • Zoom, Skype & Video Chat Help (56)

Archives

Social Connections:

Ask Dave Taylor


Follow Me on Pinterest
Follow me on Twitter
Follow me on LinkedIn
Follow me on Instagram


AskDaveTaylor on Facebook



microsoft insider mvp


This web site is for the purpose of disseminating information for educational purposes, free of charge, for the benefit of all visitors. We take great care to provide quality information. However, we do not guarantee, and accept no legal liability whatsoever arising from or connected to, the accuracy, reliability, currency or completeness of any material contained on this site or on any linked site. Further, please note that by submitting a question or comment you're agreeing to our terms of service, which are: you relinquish any subsequent rights of ownership to your material by submitting it on this site. Our lawyer says "Thanks for your cooperation."
© 2022 by Dave Taylor. "Ask Dave Taylor®" is a registered trademark of Intuitive Systems, LLC.
Privacy Policy - Terms and Conditions - Accessibility Policy