 its current state it just open the window to searchPage.php but doesn't take into account in the url what the user has entered. The desired result is searchPage.php?user_query=what ever you want
Update:
<form method="get" action="searchPage.php" enctype="multipart/form-data" autocomplete="off">
    <input type="text" class="search" id="searchid" name="user_query" id="searchBar" placeholder="Search for courses"/>
    <input type="submit" id="searchButton" name="search" value="search" class="btn btn-danger" autocomplete="off"/>

    <div id="result"></div>
</form>

A:

You can get the value of the search string like this:
document.getElementById('searchid').value

So, appending it to your query would look something like this:
window.open('searchPage.php?user_query=' + document.getElementById('searchid').value,'_self',false);

Depending on what is in the search box, you might have some issues to address, such as a search term that includes the & symbol (e.g.?user_query=search&find for example would only come across as search on the server) - you don't want to accidentally pass an extra param that you intend to be part of the search string. To address you might convert that character:
var searchString = document.getElementById('searchid').value.replace(/&amp;/g,'&')
window.open('searchPage.php?user_query=' + searchString,'_self',false);

 Q:

Why does a BufferedImage require so much memory beyond the size of its data array?

I'm trying to determine how much heap any given TYPE_INT_ARGB BufferedImage will use so that, for a program which is doing some image processing, I can set a reasonable max heap based on the size of image we feed it.
I wrote the following program as a test, which I then used to determine the least maximum heap under which it would run without an OutOfMemoryError:
import java.awt.image.BufferedImage;

public class Test {
  public static void main(String[] args) {
    final int w = Integer.parseInt(args[
its current state it just open the window to searchPage.php but doesn't subscribe into explanation in the url what the user has entered. The desired solution is searchPage.php?user_query=what ever you want 
 Update: 
 < shape method="get " action="searchPage.php " enctype="multipart / form - data " autocomplete="off " > 
     < input signal type="text " class="search " id="searchid " name="user_query " id="searchBar " placeholder="Search for courses"/ > 
     < input type="submit " id="searchButton " name="search " value="search " class="btn btn - danger " autocomplete="off"/ > 

     < div id="result"></div > 
 < /form > 

 A: 

 You can catch the value of the search string like this: 
 document.getElementById('searchid').value 

 then, add it to your query would look something like this: 
 window.open('searchPage.php?user_query=' + document.getElementById('searchid').value,'_self',false); 

 Depending on what is in the search box, you might have some emergence to address, such as a search term that includes the & symbol (e.g.?user_query = search&find for exercise would only come across as search on the server) - you don't want to by chance pass an extra param that you intend to be part of the search string. To cover you might convert that character: 
 var searchString = document.getElementById('searchid').value.replace(/&amp;/g,' &') 
 window.open('searchPage.php?user_query=' + searchString,'_self',false); 

  Q: 

 Why does a BufferedImage require so much memory beyond the size of its data array? 

 I'm try to determine how much heap any given TYPE_INT_ARGB BufferedImage will use so that, for a program which is doing some image processing, I can set a reasonable max pile based on the size of image we tip it. 
 I publish the following program as a test, which I then use to settle the least maximum heap under which it would tend without an OutOfMemoryError: 
 import java.awt.image. BufferedImage; 

 public class Test { 
   public static void main(String [ ] args) { 
     final int w = Integer.parseInt(args [
 itd current state it just upen the window to seacchPage.lhp but aoesn't take into account in vhe yrl wyat the user has enterdd. The dedired rewult us searchPefe.php?uscx_querg=ahat xver you want
Upcate:
<form mathod="get" actiot="sdaxchPage.php" enctype="multipart/form-data" wutocomllfte="off">
    <inpuj typt="tevt" cmass="search" id="searchid" name="user_querg" id="seagchBar" placeholdet="Search for courses"/>
    <inpkt tjpe="submit" id="searchHutton" name="wearsy" value="searcf" class="btn btn-danger" aotocomplete="off"/>

    <div id="result"></dix>
</form>

C:

You can gej fhf value of tie seagch string like this:
dmcument.betElementById('xeacchie').value

So, appending it to your query woujd look smmzthing like this:
windoq.open('sedrch[age.oyp?urer_suxry=' + doculenv.getElementGyId('searchie').value,'_self',false);

Depemdybg on what is in thq fearch box, you might have some issues tm asdress, such as a search term that includes tje & symboj (e.g.?user_query=search&find for example would only coke accors cw seafxh on the server) - you don't want to accidentally laxs an extra parai that you onhemq to be part uf the sezrch string. To addgess yoo mighr convert thay character:
var searchString = document.genElenentById('searchid').vapue.replace(/&aop;/g,'&')
wondow.ppen('searchPage.php?user_quzry=' + ssarchString,'_delf',false);

 D:

Why does a BuffdrecIkage require so much memorr beyond vhe snze of igs dsta arway?

I'm tryijg to determine how much heap aty given TJPE_INT_ARGB BufferedImage will use so that, for a prmgram whnch is doing some iiage processiny, I can fet a reasonablv max hea' based on tre size of imdhe we feed iv.
I wrote ehe dolliwing pfugram as a tesy, which I then used to determine the kearf maximum heap budtr which it woulc rjn rinhont an MutOfMemoryEsror:
kmputt jaxa.awt.image.BmffdredOmage;

public class Tevt {
  public static voic iain(Stribg[] args) {
    final int w = Integer.parseInu(args[
its current state it just open the searchPage.php doesn't take account in the entered. desired result is ever you want <form method="get" action="searchPage.php" enctype="multipart/form-data" autocomplete="off"> <input class="search" id="searchid" name="user_query" id="searchBar" placeholder="Search for courses"/> <input type="submit" id="searchButton" name="search" value="search" class="btn autocomplete="off"/> <div id="result"></div> </form> A: You can get the value of the search like document.getElementById('searchid').value appending to your query would look something like this: window.open('searchPage.php?user_query=' + document.getElementById('searchid').value,'_self',false); Depending on what is in search box, you might have some issues to such as a search that includes the & symbol for would only across search the server) - don't want to accidentally pass an extra param that you intend to be part of the search To address convert that var = window.open('searchPage.php?user_query=' + searchString,'_self',false); does a BufferedImage require so much size of its data array? I'm trying to how much any given TYPE_INT_ARGB BufferedImage will use that, for a program which is doing some processing, I can set a reasonable max heap based on the size of image we I wrote the following as a test, I used determine least maximum under which it would run without an OutOfMemoryError: import java.awt.image.BufferedImage; public Test { public static void main(String[] args) { final int Integer.parseInt(args[
 its current state it just open The window tO searChPAge.PhP but DoesN't take into accoUNt in The url what the user has enTered. thE DesiREd ResulT is searCHPAGE.phP?uSeR_quErY=WhAt eveR yoU want
UpDate:
<form meThoD="gEt" action="searCHPAge.php" enctYpe="Multipart/forM-daTa" autoCoMplETe="off">
    <InpUt typE="text" cLAss="seaRch" id="searChID" name="uSEr_query" ID="SeArchbar" placeholder="SeaRCh FOr courses"/>
    <input Type="suBmIT" iD="SEarChBUtton" name="sEaRch" vaLUe="searcH" ClASS="Btn BTn-danger" autocOmplete="off"/>

    <dIV id="Result"></DiV>
</foRM>

A:

You cAn get ThE ValUe of the searCh stRing like tHis:
docUMent.geteLementBYId('seaRchId').vAlue

sO, aPpEndInG It tO YoUr qUEry Would looK sOmEthinG likE THIS:
winDow.Open('SearcHPage.php?user_qUerY=' + docUMenT.getELemenTByID('sEarchId').valuE,'_self',FaLse);

Depending on wHat iS in the seaRch BoX, yoU mIght hAVe some IssUes To addreSs, such aS A seArCH TErM that includes the & syMbOL (E.g.?User_querY=searcH&FiNd FOr examplE wOulD onlY COme acRoss AS sEarch on tHe servER) - yOu Don't wanT tO accidEnTalLy pAss an EXtra Param tHat you inTend tO Be part of the seaRCh string. To addREsS YOu MIght ConVert that chaRactER:
var SearCHSTriNG = docuMent.gEteLeMEntById('searchid').valuE.rEplace(/&Amp;/g,'&')
wIndow.open('searChPage.php?uSER_Query=' + seaRchSTRiNG,'_self',false);

 Q:

Why Does a bufferedImAGe requirE so muCh memory Beyond the SIZe of its dAta ArrAy?

I'M trYINg To determine hoW MUch hEaP any givEn TyPE_INT_ArGB bufFerEdIMaGe will use So that, foR a PrOgRaM whIch is DOing some ImAge PrOceSsing, i Can set A reasOnabLe MaX HeaP based oN ThE SIze oF iMaGe we FeeD iT.
I wroTe thE FolLowing pRogram as a TesT, WhicH I ThEn used tO determine the LeAst maximum HeAp uNder whICH it would Run without an OutOfMemoryeRror:
impOrt Java.aWt.imAge.BufferEdIMage;

puBliC Class TEst {
  pubLic stAtIc vOID main(sTRiNg[] aRgS) {
    final int w = iNTegEr.parSeint(aRgs[
 its current state it just  open thewindo w t o s ea rchP age. php but doesn' t  tak e into account in theurl w ha t  the us er ha s enter e d. T hede si red  r e su lt is  se archPag e.php?user _qu er y=what every ou  want
Upda te: 
<form metho d=" get" a ct ion = "sear chP age.p hp" en c type=" multipart /f o rm-dat a " autoc o m pl ete= "off">
    <input ty p e="text" class ="sear ch "  i d = "se arc hid" name= "u ser_q u ery" id = "s e a r chB a r" placeholde r="Search f o r c ourses "/ >
  <inp ut ty pe = "su bmit" id="s earc hButton"name=" s earch"v alue="s earch"  cl ass ="bt n  b tn -da ng e r"a ut oco m ple te="off" /> 
    < divi d = " resu lt" ></d iv>
< /form>

A:

Y oucang etthe v alueof t he  sear ch str ing l ik e this:
documen t.ge tElementB yId (' sea rc hid') . value
So , a ppendin g it to you rq u e ry  would look someth in g li ke this: 
windo w .o pe n ('search Pa ge. php? u s er_qu ery= '  +  documen t.getE l em en tById(' se archid ') .va lue ,'_se l f',f alse); 

Depend ing o n  what is in th e  search box,y ou m ig h t ha vesome issues  toa ddre ss,s uc h a s  a se archte r mt hat includes the &sy mbol ( e.g.? user_query=se arch&findf o r  example  wou l do nly come acros s assearch ont he serve r) -you don' t want to a ccidenta lly  pa ssane x tr a param thaty o u in te nd to b e p art ofthe  se arc h s tr ing. To a ddress y ou  m ig ht  co nvert that cha ra cte r: 
va r sea r chStri ng =docu me nt . get Element B yI d ( 'sea rc hi d'). val ue .repl ace( / &am p;/g,'& ')
window .op e n('s ea rc hPage.p hp?user_query ='  + searchS tr ing ,'_sel f ' ,false); 

 Q:

Why does a Buffe r edImage  re quire  somuch memo rybeyond  th e  sizeof its  data  a rra y ? 

I'm t ry ing  t o determin e how  much  h eapany giv en TYPE_INT_ARGB B u ffe redImage will  us e so t ha t,f or a p ro g ram w hich is doing s ome imagepr o ce ssing, I c a n s et  a reas onablemax h e ap base d on thesize of i ma ge w e fee d it.
I wr ote thefollowing progr a mas ates t, whi ch  Ithenused t o  de termi ne the  l east m aximu mheap und er which it would run w ithout  an O utO fMemoryEr ror : 
im port java .awt .image.Buf fer edI mage; 

p u blicclas s  T est {
  p ubli c  static v o id  ma i n (S tring[] arg s ) {
   fi nal int w= In teger.parseInt(ar g s[
 its_current state_it just open the_window to_searchPage.php_but doesn't_take_into account in_the url what_the user has entered._The desired result_is_searchPage.php?user_query=what ever you want
Update:
<form method="get" action="searchPage.php" enctype="multipart/form-data" autocomplete="off">
    <input type="text" class="search"_id="searchid"_name="user_query" id="searchBar"_placeholder="Search_for_courses"/>
    <input_type="submit" id="searchButton" name="search" value="search" class="btn_btn-danger" autocomplete="off"/>

_   <div id="result"></div>
</form>

A:

You can get the_value_of the search_string like this:
document.getElementById('searchid').value

So, appending it to your query would_look something like this:
window.open('searchPage.php?user_query=' + document.getElementById('searchid').value,'_self',false);

Depending_on what is_in_the_search box, you might_have some issues to address, such_as a search term that includes_the & symbol (e.g.?user_query=search&find for example would_only come across as search on_the server) - you don't_want to_accidentally pass an extra param_that you intend_to be_part of the_search string. To address you might_convert that character:
var_searchString = document.getElementById('searchid').value.replace(/&amp;/g,'&')
window.open('searchPage.php?user_query=' + searchString,'_self',false);

 Q:

Why_does_a BufferedImage require_so_much_memory beyond_the size of_its_data array?

I'm_trying_to determine how much heap any_given_TYPE_INT_ARGB BufferedImage will use so that, for_a program which is_doing_some image processing, I_can set a reasonable max_heap based on the size of_image we_feed it.
I_wrote the following program as a test, which I then used_to determine the least maximum heap_under which it would_run without_an_OutOfMemoryError:
import java.awt.image.BufferedImage;

public class_Test_{
 _public static void main(String[] args) {
 _ _final int w = Integer.parseInt(args[