From 15f4b7932b1d91a5d56295968eaa8ea83eb57410 Mon Sep 17 00:00:00 2001 From: donovankg Date: Tue, 2 Aug 2016 14:00:10 -0500 Subject: [PATCH 1/5] Update readme.md --- exercises/readme.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/exercises/readme.md b/exercises/readme.md index f19debf..5a0049d 100644 --- a/exercises/readme.md +++ b/exercises/readme.md @@ -42,3 +42,8 @@ about commiting the changes and finally push them into your forked repository. push to the forked repository, finally discuss the differences between both methods, using the readme file of this exercise. +
+

GET vs POST Methods.
+ GET allows the form to gather data from a the input the elements in a page while POST uses that data
+ to do things with it (put it into a database, email it, etc.) +

From 9a85e894b4400f991e7cca5cd5a9ffa7bf288628 Mon Sep 17 00:00:00 2001 From: Ksquare Inc Date: Tue, 2 Aug 2016 14:11:45 -0500 Subject: [PATCH 2/5] examples finished --- .DS_Store | Bin 0 -> 6148 bytes exercises/.DS_Store | Bin 0 -> 6148 bytes sample1/.DS_Store | Bin 0 -> 6148 bytes sample1/test.html | 13 +++++++++ sample2/.DS_Store | Bin 0 -> 6148 bytes sample2/about.html | 19 ++++++++++++ sample2/contact.html | 46 +++++++++++++++++++++++++++++ sample2/css/styles.css | 12 ++++++++ sample2/index.html | 32 +++++++++++++++++++++ sample3/.DS_Store | Bin 0 -> 6148 bytes sample3/form.html | 64 +++++++++++++++++++++++++++++++++++++++++ 11 files changed, 186 insertions(+) create mode 100644 .DS_Store create mode 100644 exercises/.DS_Store create mode 100644 sample1/.DS_Store create mode 100644 sample1/test.html create mode 100644 sample2/.DS_Store create mode 100644 sample2/about.html create mode 100644 sample2/contact.html create mode 100644 sample2/css/styles.css create mode 100644 sample2/index.html create mode 100644 sample3/.DS_Store create mode 100644 sample3/form.html diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..aced617f1f79cf887affdeca58c293f563e38478 GIT binary patch literal 6148 zcmeHKPiqrF6n~RO-EA)`Rw#IxV}&4*wC1{vsnA0qxY8n4;%;{_1M5!M-87aE*mJLb z1OI;y(UV`mkK!r5H#02_iMJvu^OiTiw=?fI%lu}UKLEfwqxe362LKK_Va>&2iBUWG zg4Ik-9g(R%jzK^H2^4$jLbk2=8x^3rb8*IAqvvpG{^W6#$_QKO*LZ}!iOyy-ESEB( zaWOQEpV2TCMcHirV6~O{wd*$=cXf>(@8;_BU?9gq8J44>6Xws_fI`!T-&Yip4JNr+E)3dkl-hcS`>GPMb zYVg4DXIFO1;5mH5V2PL~L7t^Ddx@>Ybm1}V!VYv{AMqZ%f_N{TllwbnZO)WoWX&pI z6|f3ixdLVxbJniBXWOAwz$);sD?sZ5M}>9 z3mVf@L``MpiorA;>$%DE4OSX89hkX%F!N<*ZYWHB9sB1h9hk4tmR13)z`O!0`qiWT zfA{zI|9O&qvkF)R{woDoy&H5pI3%;TE)0(LT8{n#os9A-jTaOQ)K-kSv=wilE5mwD X0itiP(ug%^_8_2Su!U9Nk1FsBFqC}; literal 0 HcmV?d00001 diff --git a/exercises/.DS_Store b/exercises/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..ad8b56ff374c82a0f17daa31ac18ff93002191c5 GIT binary patch literal 6148 zcmeHKF-`+P474Fd5KYRITT&tMgH;resQEw$M;8TS3&TbS7#PPBK1sqvgXv9roJ5RPZO*t1dW{&KbmUvr^};bR>E>}Wo>Mn_O(-6>Bj2Lj zyeBG30V!~-z<(y>LtnI`TmW>dydmkx7BSR^ST)ts5u+ literal 0 HcmV?d00001 diff --git a/sample1/.DS_Store b/sample1/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..5008ddfcf53c02e82d7eee2e57c38e5672ef89f6 GIT binary patch literal 6148 zcmeH~Jr2S!425mzP>H1@V-^m;4Wg<&0T*E43hX&L&p$$qDprKhvt+--jT7}7np#A3 zem<@ulZcFPQ@L2!n>{z**++&mCkOWA81W14cNZlEfg7;MkzE(HCqgga^y>{tEnwC%0;vJ&^%eQ zLs35+`xjp>T0 + + + + + + Hello + + + +

Hello World!

+ + diff --git a/sample2/.DS_Store b/sample2/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..9581c52ffaca2b52a3582caaf904e2b084141d61 GIT binary patch literal 6148 zcmeHK!A`*dr$s{-D8X;#Gb?pd!T95`n~HKf^Ebq$e-_4ZfM3Ahm7a zWYo+gGjF@IZ@2T3?RJUC^;dC^s6#|8IAgPoP+^>BFWG_i90Q%qv7|Ga(vnh2N~5jA z6fgyTn*zLd+ccyRWwgT1-R$41BpZ*CY=k_294_JAwHR7NM>GcG0gNG9^}N?_yaq-u zXi=QqU007v?s|i9md<%WHRY#S6veCMnCSgwaxS?|Ca%fMr={82G(!zB-O^KC`S5j7!}IN zLKgnC0ywkTT8ADjngXVPDX>w1zYhVNF;vVw%BKTCt^mL$y2a4u-v#CbilJie5gC~C zRG_Ciy<#{|M}MH>LdD#pr<2pmhtrjv-cX#Zj`;%_PA>Fl(G)NRiV8IRV~5ZGi~9S2 zkz`M%fGO~=6mZRG5cN@#o~@ + + + + + + + + + + diff --git a/sample2/contact.html b/sample2/contact.html new file mode 100644 index 0000000..c4d35b3 --- /dev/null +++ b/sample2/contact.html @@ -0,0 +1,46 @@ + + + + + + + contact page + + +
+

+ Conact information +

+ + + + + + + + + + + + + + + + + + + + +
namephone numbercitystate
donovan goldstonxxx-xxx-xxxxdallastexas
Angela Goldstonxxx-xxx-xxxxdallastexas
+
+ + + diff --git a/sample2/css/styles.css b/sample2/css/styles.css new file mode 100644 index 0000000..d08a8a9 --- /dev/null +++ b/sample2/css/styles.css @@ -0,0 +1,12 @@ +span{ + background-color: red; +} +#sample1{ + background-color: green; + width: 800px; + height: 200px; +} +.links{ + background-color: green; + width: 200px; +} diff --git a/sample2/index.html b/sample2/index.html new file mode 100644 index 0000000..57968f4 --- /dev/null +++ b/sample2/index.html @@ -0,0 +1,32 @@ + + + + + + + main page + + +

+ sample header 1 +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+

+ sample header 2 +

+

+ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. +

+ + + diff --git a/sample3/.DS_Store b/sample3/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..c23b5865ddbf1518464f3cf3772ceb6ccf14d148 GIT binary patch literal 6148 zcmeHKyGjH>5UkbU?ua)JbMtfenH^Qeh;%;V0#DfC8N z@#$cQ5rDX0I*jX>C5X)v#9lZhGDEYZ5|e5*Vp!6dZ&lX|r^KYg;$}XlZnm0GEN*AM zMLDb|DoOzZdcy_ujoI_|A!>)q<|FoR|?o-bGupdm8!SSUe0@Mqu + + + + user form + + + +
+ +
+ +
+
+
+ + +
+
+

+ Create a <form> element that will ask to the user and will submit to www.google.com using GET method:
+ 1. Name (textbox)
+ 2. Last Name (textbox)
+ 3. Birth Date (calendar)
+ 4. Age (range)
+ 5. Sex (option or radiobutton)
+ 6. Email
+ 7. Submit button
+
+ All of the input should be required and validated before submitted, and should have a proper label attached to it. + Don't forget to commit all changes.
+
+ When the GET is already working create a new branch that will change to a POST method, this branch should be also push to
+ the forked repository, finally discuss the differences between both methods, using the readme file of this exercise.
+

+
+
+

+ GET vs POST Methods.
+ GET allows the form to gather data from a the input the elements in a page while POST uses that data
+ to do things with it (put it into a database, email it, etc.) +

+
+ + From f36389a59b551e83092c0a794124d40182e28dcc Mon Sep 17 00:00:00 2001 From: Ksquare Inc Date: Tue, 2 Aug 2016 16:37:51 -0500 Subject: [PATCH 3/5] fixed errors --- .DS_Store | Bin 6148 -> 8196 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/.DS_Store b/.DS_Store index aced617f1f79cf887affdeca58c293f563e38478..bff4e07a30d0fd7e74800b604ff58c3ce05cae8e 100644 GIT binary patch literal 8196 zcmeHMOK;Oa5T0!Vb=r#&AR=)ww<1L-wcCbc8d9VlDn$)yg(wPkY&Dh~JH$={iX!E} zi7OJ~%=>>Jdg8_f#4q6#W*-fS<1`YY2+FRt^R0Kk@#CA#+T#EKDYoqufD8aASShMY zXc7t?r*)#tiJmKn1pNVO;6exvgj?POTXskVqyka_sen{KD)2WbfX{4Nlqt`BJ}RwL zKq~NGDnQo<4J*Zhz&=N|bf94=0AdQeS;02u0nA4eSP^mNu+NdZ1L5vK#F>f6PzXCa`e}>~q`*;Hsen{qQURK~r!ixHgtaxAzXvtT3oIO^ zKd9SSm$8z;0Bxd&)d`!zBd+^xQo7dT#VsNz<*WX1ZO&Sj%e0YQC4%y7_!AtF0RAy`K6^QLbKJ z+t|L_>^*(?>h+tq@7{m-$Zj5pScBjq-yhneWN8j7E#C|L101EEY1n~H*nkpjBi?`p z*jwJ1+@FxOJYWS|01Nn0#YA2cJPgyyIGgO8%=QjeDz%`|WJlsAcDzPVD%tI*2JrdF zdCn*k40{HnS)XwhJ$BV!PP}UUpPf$nO+BmW>qcxkJ^97yG#&_jW-#@!V17#oCNf5X znaG$O%-ED3ze-~~)NJ*5F?Bi{GSmQc<%o$mGt|ats2^TS2sJW(hB}!sGt@>b)a*3U zoCO8u`AuYK{=Yf>`~O+ERe29m0ja_`NpHqq(+*^#N8|D6h|vxu9X` tI3i2O5r=;mVp~Hh^(hGKbHpAjfBZwh@5>xc^;OT1&wn;Qq&Xc0egK&Y^0oi~ delta 116 zcmZp1XfcprU|?W$DortDU=RQ@Ie-{MGjUEV6q~50$jGuWU^gQp%VawNvCT>XeT*B+ y!dVuxb8rYU162Wm05_0u1!>q=_?>w&zl4l@8nXb}wn From ad5f5b4fa68413bb461fca010198c3dfc46a8342 Mon Sep 17 00:00:00 2001 From: Ksquare Inc Date: Tue, 2 Aug 2016 16:40:45 -0500 Subject: [PATCH 4/5] fixed errors --- sample3/form.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sample3/form.html b/sample3/form.html index 180a236..b3ab8b6 100644 --- a/sample3/form.html +++ b/sample3/form.html @@ -13,15 +13,15 @@



From 19ef305d49f4d94be34c167fc0243643611a80c2 Mon Sep 17 00:00:00 2001 From: Ksquare Inc Date: Tue, 2 Aug 2016 16:41:33 -0500 Subject: [PATCH 5/5] fixed errors again --- sample3/form.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sample3/form.html b/sample3/form.html index b3ab8b6..38dec9c 100644 --- a/sample3/form.html +++ b/sample3/form.html @@ -30,7 +30,7 @@