Skip Navigation

Computer Sales

HTML Code Samples

Overview.

This web page explains how to add simple HTML code to your own web pages, so you may directly run queries against our UNL sales on-line database.
You may directly cut and paste the HTML code below into your own web pages.

Separation Line

Generalities.

The hyperlinks listed in the forms below are 'safe' (we won't rename our pages and risk breaking your pages).

In all forms, 'action= ...' line, the  target='_blank'  statement forces to open the results in a new web page.
That is the preferred way to show results, but you may delete the target='_blank' words for the results to appear in the calling web site/page.

Our forms use numerous hidden variables.They all are necessary! Removing any may cause the resulting page to work improperly!

Separation Line

Sample of open search for a description.

 

Description

Associated HTML code.

<form method='post' action='http://sales.unl.edu/catalog/results/Results_Catalog_Searches.asp' target="_blank">
<p style="text-align: left">Description
<input type='text' size='20' maxlength='20' name='VarDescription'></input>
<input type='submit' name='B1' value='GO'></input>
<input type='hidden' name='VarTitle' value='Open Catalog Search'></input>
<input type='hidden' name='VarTitleSort' value='Product Short Description'></input>
<input type='hidden' name='VarSortOrder' value='DescrWeb'></input>
<input type='hidden' name='VarCatID' value='ALL'></input>
<input type='hidden' name='VarIsForSale' value='True'></input>
<input type='hidden' name='VarWords' value='All'></input>
<input type='hidden' name='VarSortPrior' value='DescrWeb'></input>
<input type='hidden' name='VarSortASC' value='Yes'></input>
<input type='hidden' name='VarMaxRows' value='125'></input>
<input type='hidden' name='VarCheckIt' value='Yes'></input>
</p></form>

Separation Line

Sample of open search for select software 'Office 2007'.

 

Associated HTML code.

<form method='post' action='http://sales.unl.edu/catalog/results/Results_Catalog_Searches.asp' target="_blank">
<p>
<input type='hidden' name='VarTitle' value='Open Catalog Search'></input>
<input type='hidden' name='VarTitleSort' value='Product Short Description'></input>
<input type='hidden' name='VarSortOrder' value='DescrWeb'></input>
<input type='hidden' name='VarIsForSale' value='True'></input>
<input type='hidden' name='VarWords' value='All'></input>
<input type='hidden' name='VarSortPrior' value='DescrWeb'></input>
<input type='hidden' name='VarSortASC' value='Yes'></input>
<input type='hidden' name='VarMaxRows' value='125'></input>
<input type='hidden' name='VarCheckIt' value='Yes'></input>

<input type='hidden' name='VarDescription' value='Office 2007'></input>
<input type='hidden' name='VarCatID' value='17'></input>
<input type='submit' name='B1' value='Office 2007'></input>
</p></form>

Specific Comments.

For proper use of the above form you must always tailor 3 lines:
  <input type='hidden' name='VarDescription' value='Office 2007'>
  <input type='hidden' name='VarCatID' value='17'>
  <input type='submit' name='B1' value='Office 2007 for PC'>

The value of the VarDescription variable must contains a description.
The value of the VarCatID variable must contains a number as follow:
    16 to search for MAC/UNIX software packages (NOT licenses).
    17 to search for WINDOWS software packages (NOT licenses).
The value of the B1 variable should repeat the description.

Separation Line

Testing and Questions.

No matter what you do, please test and retest your web pages!
If you have any questions, feel free to call Alain Boucher (402) 472-9960
Happy programming.