Question: 3. Create a form shown below and do the form validation. When the user clicks the submit button output all validated input. Use & study


3. Create a form shown below and do the form validation. When the user clicks the submit button output all validated input. Use \& study the code below and discuss what you have observed. Prepared by: Enrico V. Angeles Lab Manual No. 6 | Page 6 SSD-2201 | Web Ptogramming and Security A.C. 2022-2023 | Semester 1 PHP Form Validation Example Name: E-mail: Website: Comment: Gender: OFemale OMale Your Input: = Semail = Sgender = Scomment = Swebste =; If (\$_SERVER["REQUEST_METHOD") = "POST") 1 Sname - textiocuts_post["name"l]; Semall - tert Loputh_pOST["email'): Swebsite = tert lacut/s_post 'website"ll; Scomment = testulapuris,_osi["comment]): Seender = testiogutis_Posti'eenderll: 1 function tert uirout(\$data) 1 Sdata = trim(Sdata); Sdata = stripstasbes Sdata): Sdata = btoplspochalchaos(Sdata); return Sdata; ? h2oPHP Form Valldation Examplechmzo Name: einput types"tedt" nameu'name"> tho be E-mail: cinput type-"tert' name-"emall's Website: dinput type-"tert" name-" 'website's tho-dbe sore Gender: dinput type-"radio" names"gender" valuea"temale" FFemule sllormo Qobe echo "charour input:4h2o": echo Sname; echo "edo": echosemal: echo seno" echo Swebsite; echo "coo": echo scomment: echo "800"; echo sender
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
