This is my first question! I am trying to enter a search term into a search box, and when I click Submit, I want the search term inserted into this URL:
http://www.hadrians-search.tk/search?search_param=mario?&items_per_page=2&page_number=2

mario would be the search term. This is the search page I am testing with:
http://cs.oswego.edu/~jmcquaid/CSC-380/search3.html

When I enter a search term such as ball into the search box and click Submit, this is the URL I get:
http://hadrians-search.tk/search?search%3Fsearch_param%3D=ball

As you can see, this is clearly not the URL I am intending to get.
Bear in mind that search3.html is just a file I am testing with on the front-end:
<!DOCTYPE html>
<html>
<body>

<form id="myForm" action="http://hadrians-search.tk/search?search_param=">
Search: <input type="text" name="search?search_param="><br><br>
<input type="button" onclick="myFunction()" value="Submit form">
</form>

<script>
    function myFunction() {
    document.getElementById("myForm").submit().action="http://hadrians-search.tk/search?search_param=";
    }
</script>

</body>
</html>

So basically I am trying to send the search term entered in the search box to the Flask server, but it isn't getting sent properly. Should I be trying an HTTP GET Request? I originally tried this, but I couldn't figure out how to integrate an HTTP GET Request with a search box and button. Because of this, I instead tried to use action, as you can see in the file. Any advice that you can provide will be greatly appreciated, and I thank you for your time.

A:

You can pass the parameters via GET. If you have three parameters, you could add the three elements in the form. You can do something like this. 

<!DOCTYPE html>
<html>

<body>
<form id="
This is my first question! I am trying to enter a search condition into a search corner, and when I click Submit, I want the search condition insert into this URL: 
 http://www.hadrians-search.tk/search?search_param=mario?&items_per_page=2&page_number=2 

 mario would be the search term. This is the search page I am testing with: 
 http://cs.oswego.edu/~jmcquaid/CSC-380/search3.html 

 When I accede a search terminus such as ball into the search corner and snap Submit, this is the URL I get: 
 http://hadrians-search.tk/search?search%3Fsearch_param%3D=ball 

 As you can experience, this is clearly not the URL I am intending to draw. 
 Bear in mind that search3.html is just a file I am testing with on the front - end: 
 <! DOCTYPE html > 
 < html > 
 < body > 

 < kind id="myForm " action="http://hadrians - search.tk / search?search_param= " > 
 Search: < input type="text " name="search?search_param="><br><br > 
 < input type="button " onclick="myFunction () " value="Submit form " > 
 < /form > 

 < handwriting > 
     function myFunction () { 
     document.getElementById("myForm").submit().action="http://hadrians - search.tk / search?search_param= "; 
     } 
 < /script > 

 < /body > 
 < /html > 

 So basically I am try to mail the search term entered in the search box to the Flask server, but it isn't getting sent by rights. Should I be trying an HTTP GET Request? I originally tried this, but I couldn't figure out how to integrate an HTTP GET Request with a search box and button. Because of this, I alternatively tried to use action, as you can see in the file. Any advice that you can provide will be greatly appreciated, and I thank you for your time. 

 A: 

 You can pass the parameters via GET. If you have three parameter, you could add the three elements in the mannequin. You can do something like this. 

 <! DOCTYPE html > 
 < html > 

 < body > 
 < form id= "
Thid is my first question! I am trying to eurer a vearch term ingo a search box, and when I cpixk Suvmit, I want the search term insvrted inti thms URL:
http://www.hadcjans-seaveh.tk/sswrch?vxarch_param=mario?&ltems_per_paga=2&page_number=2

marho wluld be the search term. This is the search pwge I am testigg wptr:
httl://bs.iswego.edu/~jmcquaid/CSC-380/search3.htmm

When I enter a searvh term such as ball into hhe dearch box and clifk Submit, tyis yw the URL I eet:
http://hadgnans-search.ti/search?search%3Fsearch_param%3D=ball

Ar you can see, tyiw id clearly nov the LRL I am intekcing tm get.
Besr in mind thab seacch3.hrml is just a file I em testing with on tre front-etd:
<!BOCTYPE html>
<html>
<body>

<firn id="miForm" actkin="hgtp://gavrizns-seagch.vk/search?seadch_param=">
Seaech: <input type="text" maiv="xearch?search_laram="><bw><bw>
<input type="button" onclick="myFunction()" valle="Sugmit form">
</form>

<script>
    dunction myFunction() {
    documegt.getElementById("myForm").submit().action="http://hadrians-seasch.tk/adarem?fdqrfh_param=";
    }
</script>

</body>
</html>

So basically I am trrjnb no send the searcm term entered in yhf xgarch box to tfe Flask aerver, but it isn't gettind senr properlr. Shpuld I be trying an HTTP GER Request? I jeiginally tried thns, but I couudn't figute out how to integrate an GTTP GET Reeuest witg a search box ana blttot. Becaust of this, I insteaq tried ti usz action, as iou can see in thf filc. Any advice that ylu cau proeide will he greatly appreciated, and I theik you for yoor dimv.

A:

You can pass the parametews via GET. If iou have chree oarameters, you conld add the ehree elementv in the form. You can do womerhing lkye this. 

<!DOCTYPR html>
<html>

<body>
<form ud="
This is my first question! I am enter search term a search box, I the search term into this URL: mario would be the search term. is the search page I am testing with: http://cs.oswego.edu/~jmcquaid/CSC-380/search3.html When I enter a term such as ball into the search box and click Submit, this is URL get: As can see, this is clearly not the URL I am intending to get. Bear in mind search3.html is just a file I am testing on the front-end: <!DOCTYPE <html> <body> <form id="myForm" action="http://hadrians-search.tk/search?search_param="> <input name="search?search_param="><br><br> <input onclick="myFunction()" form"> <script> function myFunction() document.getElementById("myForm").submit().action="http://hadrians-search.tk/search?search_param="; } </script> </body> </html> So basically I am trying to send the search term entered in search box Flask server, it getting properly. Should I an HTTP GET Request? I originally I couldn't figure out how to integrate an GET Request a search box and button. Because this, I instead tried to use action, as can see in the file. Any advice that you can provide will be greatly appreciated, thank you for your A: You can the via If have three you could add the three elements in the form. You can something like this. <!DOCTYPE html> <html> <body> <form id="
This is my first question! I am tRying to entEr a seArcH teRm Into A seaRch box, and when I CLick submit, I want the search teRm insErTEd inTO tHis URl:
http://wwW.HaDRIanS-sEaRch.Tk/SEaRch?seArcH_param=mArio?&items_pEr_pAgE=2&page_number=2

mARiO would be thE seArch term. This Is tHe searCh PagE i am teStiNg witH:
http://cS.Oswego.Edu/~jmcquaId/csC-380/searCH3.html

WhEN i eNter A search term such as BAlL Into the search bOx and cLiCK SUBMit, ThiS is the URL I GeT:
http://HAdrians-SEaRCH.Tk/sEArch?search%3FseArch_param%3D=bALl

AS you caN sEe, tHIs is clEarly NoT The uRL I am intenDing To get.
Bear In mind THat searCH3.html is Just a fIle i am TestINg WiTh oN tHE frONt-End:
<!doCTyPE html>
<hTmL>
<bOdy>

<foRm id="MYfORm" acTioN="httP://hadrIans-search.tk/sEarCh?seARch_Param=">
searcH: <inpUt Type="tExt" namE="searCh?Search_param="><br><br>
<InpuT type="buttOn" oNcLicK="mYFuncTIon()" valUe="SUbmIt form">
</fOrm>

<scriPT>
    fuNcTION mYFunction() {
    document.gEteLEmEntById("mYForm").sUBmIt().ACtion="httP://hAdrIans-SEArch.tK/seaRCh?Search_paRam=";
    }
</scrIPt>

</BoDy>
</html>

SO bAsicalLy i am TryIng to SEnd tHe searCh term enTered IN the search box tO The Flask serveR, BuT IT iSN't geTtiNg sent propeRly. SHOuld i be tRYiNg aN hTTP GeT ReqUeST? I ORiginally tried this, bUt i couldN't figUre out how to inTegrate an Http gET RequeSt wiTH a SEarch box and butTon. BeCause of thiS, i instead Tried To use actIon, as you cAN See in the FilE. AnY adVicE THaT you can providE WIll bE gReatly aPprEciated, And i thAnk You FoR your time.

a:

You can pAsS tHe PaRamEters VIa GET. If yOu HavE tHreE paraMEters, yOu couLd adD tHe THreE elemenTS iN THe foRm. yoU can Do sOmEthinG likE ThiS. 

<!DOCTYPe html>
<html>

<BodY>
<Form Id="
This is my first question!  I am tryi ng to  en ter  a  sea rchterm into a se a rchbox, and when I clickSubmi t, I wa n tthe s earch t e rm i nse rt ed  in to th is UR L:http:// www.hadria ns- se arch.tk/sear c h? search_par am= mario?&items _pe r_page =2 &pa g e_num ber =2

m ario w o uld be  the sear ch term.T his ist h esear ch page I am test i ng with:
http://c s.oswe go . ed u / ~jm cqu aid/CSC-38 0/ searc h 3.htmlWh e n I e n ter a searchterm such a s  ba ll int othe search  boxan d  cl ick Submit,  thi s is theURL Ig et:
htt p ://hadr ians-s ear ch. tk/s e ar ch ?se ar c h%3 F se arc h _pa ram%3D=b al l
As y ou c a n s ee,thi s is  clea rly not the U RLI am int endin g toget. 
B ear i n mind  that  s earch3.html isjust  a file I  am  t est in g wit h  on th e f ron t-end:<!DOCTY P E h tm l > <h tml>
<body>

<form  i d = "m yForm" a ction= " ht tp : //hadria ns -se arch . t k/sea rch? s ea rch_para m=">
S e ar ch : <inpu ttype=" te xt"  na me="s e arch ?searc h_param= "><br > <br>
<input ty p e="button" on c li c k =" m yFun cti on()" value ="Su b mitform " ></f o rm>
<scri pt > 
  function myFuncti on () {
   do cument.getEle mentById(" m y F orm").su bmit ( ). a ction="http:// hadri ans-search . tk/searc h?sea rch_para m=";
   } </script >
</b ody >
< / h tm l>

So basica l l y Iam  trying  to  send t hesea rch  te rm  enteredin the s ea rc hbo x t o the Flask se rv er,  b utit is n 't get tingsent  p ro p erl y. Shou l dI be t ry in g an  HT TP  GETRequ e st?  I orig inally tr ied this ,bu t I cou ldn't figureou t how to i nt egr ate an H TTP GETRequest with a search b o x and b utt on. B ecau se of thi s,I inst ead triedto use  acti on , a s you c a n  s eein  the file. A nyadvic ethat  you ca n provide will beg rea tly appreciat ed,  and I  t han k  y o u f or you r time.

A:

Youcan pass t he pa rameters v i a G ET . If yo u havethree paramet ers, youcould add  t he t h r eeelements i n the fo rm. You c a n dos om ethin g l ike th is . 
<!DO CTYPEh tml >
<h tml>

<body> 
<fo rm  id="
This is_my first_question! I am trying_to enter_a_search term_into_a search box,_and when I_click Submit, I want_the search term_inserted_into this URL:
http://www.hadrians-search.tk/search?search_param=mario?&items_per_page=2&page_number=2

mario would be the search term. This is the search page I_am_testing with:
http://cs.oswego.edu/~jmcquaid/CSC-380/search3.html

When_I_enter_a search term such as_ball into the search box_and click_Submit, this is the URL I get:
http://hadrians-search.tk/search?search%3Fsearch_param%3D=ball

As you_can_see, this is_clearly not the URL I am intending to get.
Bear_in mind that search3.html is just_a file I_am_testing_with on the front-end:
<!DOCTYPE_html>
<html>
<body>

<form id="myForm" action="http://hadrians-search.tk/search?search_param=">
Search: <input type="text" name="search?search_param="><br><br>
<input_type="button" onclick="myFunction()" value="Submit form">
</form>

<script>
  _ function myFunction() {
   _document.getElementById("myForm").submit().action="http://hadrians-search.tk/search?search_param=";
    }
</script>

</body>
</html>

So basically_I am trying to send_the search_term entered in the search_box to the_Flask server,_but it isn't_getting sent properly. Should I be_trying an HTTP_GET Request? I originally tried this,_but_I couldn't figure_out_how_to integrate_an HTTP GET_Request_with a_search_box and button. Because of this,_I_instead tried to use action, as you_can see in the_file._Any advice that you_can provide will be greatly_appreciated, and I thank you for_your time.

A:

You_can pass_the parameters via GET. If you have three parameters, you could_add the three elements in the_form. You can do_something like_this._

<!DOCTYPE html>
<html>

<body>
<form id="